janet-lang / spork

Various Janet utility modules - the official "Contrib" library.
MIT License
122 stars 35 forks source link

Add test suite to fmt, misc, msg and rpc. #6

Closed pepe closed 4 years ago

pepe commented 4 years ago

I have only implemented tests for fmt and misc, as low hanging fruits. Requesting a direction approval :-)

As debated in #5

bakpakin commented 4 years ago

As a start, this looks good to me. Obviously, it’s a bit less obvious how to test networking utilities but first things first.

pepe commented 4 years ago

Exactly my way of thinking. I will proceed with it.

Sent with GitHawk

pepe commented 4 years ago

An only right way I have found is to use thread for the "server". I had to add some os/sleep to wait on server thread to start.

How to test netrepl I do not know :-).

pepe commented 4 years ago

Closes #5

pepe commented 4 years ago

Thank you very much!