apainintheneck / crystal-linenoise

Crystal bindings for the Linenoise library
https://apainintheneck.github.io/crystal-linenoise/
MIT License
1 stars 0 forks source link

Add tests and additional CI checks #6

Closed apainintheneck closed 8 months ago

apainintheneck commented 8 months ago

Closes #1

This adds some simple tests for tab completions using an expect script that tests the example/example.cr program interactively.

More tests should be added in the future for history and the wrapper modules. It might also be possible to test hints but I'm not sure since that data doesn't get echoed automatically.

Either way this is a good start.

apainintheneck commented 8 months ago

It looks like the terminal on CI is too dumb for the example program to work and for the expect script to run successfully. Either way it's good to have more checks on CI and local tests.