Giter Club home page Giter Club logo

punkirc-test's Introduction

Oh, Hi There 👋

Bit about me

I am 28, a student, programmer with a heart for bugs, and most of the time confused about what I am doing. Most of my projects here are just for fun and often experimental or stupid as hell. I love bad JavaScript jokes as much I love tea and I love tea a lot! 🍵

Languages

My preferred languages are either Scala or C#, but I also use Java, Python, and some JavaScript/ TypeScript.

Frameworks and Tools

My IDE to go is right now IntelliJ for scala and everything related to the JVM. Visual Studio for all the dotnet related things, and vs-code for some casual experiments. The frameworks I used to work with the most are the Akka framework for actors and ANTLR for parsing data. For my web projects I prefer Vue.js and Tailwind CSS. And, as you can see, git is no stranger to me.

Projects

Some of my old projects:

  • Onyx - QR-Generator 🏷️

    A basic qr-code generator build with flask-restful and vue.js.

  • DartRogue 🔪

    A simple dungeon crawler written in dart.

  • CMTC

    An LLVM compiler for the cymbol language. One of my projects for studies.

  • Cereal 🥛

    This is one of these experimental projects. It's a compiler for a custom java dialect, which is mostly designed around my favorite topic: Breakfast, or more specific: cereal. It's more a fun project than something serious.

  • Project Pricefield 🐳

    A test client for IRC servers, which are written by the students at the TH Lübeck in the course "Distributed Systems". It's built with the Akka framework, ANTLR, and StringTemplate.

  • Thunder-Remote 🚗

    A modified version of the 'pyController' package for usage with a ThunderBorg. Supports multiple controller layouts which can be customized. Part of a bigger project during my studies.

punkirc-test's People

Contributors

dependabot[bot] avatar schrotty avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

punkirc-test's Issues

authLines value does not change anything

A change in the authLines value in the config.properties does not change anything on how the testclient react for authorisation replys. The client still expects all "LUSER" messages.

Fast jeder Testfall schlägt fehl

Seit version 1.2.1, egal welches Format die RPL_WELCOME, RPL_YOURHOST, RPL_CREATED, RPL_MYINFO Strings haben, die Tests schlagen fehl mit:
[completeAuthAtOnce()@08:36:30]: Tried to parse an empty string!
Desweiteren scheint der Test-Client alter Strings im Puffer zu behalten, so behauptet er zum Beispiel bei PONG, dass er eine Antwort erhalten hat obwohl diese im Log nie steht und auch manuell getestet nie kommt. Ich denke hier bleiben die Strings von Registration im Puffer welcher als Antwort auf interpretiert. Außerdem fehlt hier ein Leerzeichen zwischen server_response und 'Closing Link' https://github.com/punkIRC/punkIRC-test/blob/master/src/main/antlr/de.rubenmaurer.punk/IRC.g4#L141
Des Weiteren wäre eine Beispiel Liste von Formaten, die der Test Client akzeptiert, schön. Am besten für mögliches alle RPLs und ERRs. Ich konnte in der neusten Version fast gar keinen Test passen und die alte Version war da auch nicht sehr aufschlussreich.

Execude Testclient with -t="All" doesn't run all Tests

When I run the Pricefield Test client with the -t="All" Parameter it won't run at least the Ping/Pong Tests. Probably even more test are been skipped.

It stops after the NOTICEPRIVMSG Tests with an unexpected EOF while looking for matching `"'

TopicChannel wird falsch evaluiert?

Ich bin mir nicht zu 100% sicher, aber eigentlich müsste im Fall von topic4() doch 403 "No such channel" als Reply erwartet werden und kein 442 "You're not on that channel".
Da ein Client erzeugt wird, er sich autorisiert und dann versucht ein Topic zu bekommen obwohl kein Channel vorhanden ist.

https://github.com/punkIRC/punkIRC-test/blob/8fc3c519509b6352ea2493cd2699b6a42fab5653/src/main/java/de/rubenmaurer/punk/test/channel/TopicChannel.java#L61-L72

pricefield.log:

[2019-12-17 08:23:31]  DEBUG  SEND: USER schrottler * * :Rodolf Schrottler
[2019-12-17 08:23:36]  DEBUG  SEND: NICK schrotty
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 001 schrotty :Welcome to the Internet Relay Network [email protected]
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 002 schrotty :Your host is 0.0.0.0, running version 1.0
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 003 schrotty This server was created 17.12.2019 20:23
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 004 schrotty 0.0.0.0 1.0 ao mtov
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 251 schrotty :There are 1 users and 0 services on 1 servers
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 252 schrotty 0 :operator(s) online
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 253 schrotty 0 :unknown connection(s)
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 254 schrotty 0 :channels formed
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 255 schrotty :I have 1 clients and 1 servers
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 375 schrotty :- 0.0.0.0 Message of the day -
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 372 schrotty :- General Kenobi!
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 376 schrotty :End of MOTD command.
[2019-12-17 08:23:36]  DEBUG  SEND: TOPIC #Blackwell-Dorms
[2019-12-17 08:23:36]  DEBUG  RECV: :0.0.0.0 403 schrotty #Blackwell-Dorms :No such channel
[topic4()@08:23:36]: No message with response code 442 found!

LUSERS test expects wrong number of clients

"The number of clients in the RPL_LUSERME reply is the total number of connections, including unknown connections."

[2019-11-25 08:01:31] DEBUG SEND: LUSERS
[2019-11-25 08:01:31] DEBUG RECV: :irc.vsys.com 251 max :There are 1 users and 0 services on 1 servers
[2019-11-25 08:01:31] DEBUG RECV: :irc.vsys.com 252 max 0 :operator(s) online
[2019-11-25 08:01:31] DEBUG RECV: :irc.vsys.com 253 max 0 :unknown connection(s)
[2019-11-25 08:01:31] DEBUG RECV: :irc.vsys.com 254 max 0 :channels formed
[2019-11-25 08:01:31] DEBUG RECV: :irc.vsys.com 255 max :I have 1 clients and 0 servers
[lusers1()@08:01:31]: Expected: '1', but got '0'.

[2019-11-25 08:04:42] DEBUG SEND: LUSERS
[2019-11-25 08:04:42] DEBUG RECV: :irc.vsys.com 251 max :There are 4 users and 0 services on 1 servers
[2019-11-25 08:04:42] DEBUG RECV: :irc.vsys.com 252 max 0 :operator(s) online
[2019-11-25 08:04:42] DEBUG RECV: :irc.vsys.com 253 max 0 :unknown connection(s)
[2019-11-25 08:04:42] DEBUG RECV: :irc.vsys.com 254 max 0 :channels formed
[2019-11-25 08:04:42] DEBUG RECV: :irc.vsys.com 255 max :I have 4 clients and 0 servers
[lusers2()@08:04:42]: Expected: '1', but got '0'.

Failing tests

The following tests are failing:

  • list2/ 3/ 4
  • partNoChannel1/ 2
  • topic1/ 2
  • whoisNoNick
  • privmsgNoNick
  • testJoin4/ 5

Minor improvements

  • Fix some issues which are blocking the testing using IntelliJ
  • Improve code in general and remove unnecessary code

Evaluation expected/real switched

In evaluation the 'expected' varaible is switched with the 'real' one.

Example:
"Expected Elisabeth but got Chloe" should be "Expected Chloe but got Elisabeth "

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.