Extract line reading logic to reader and remove REPL tests

Reading a line into the buffer was the only logic complex enough to be
worth testing really, and exposing the necessary parts of it to test
it effectively was a pain.  Makes more sense to move read_line out and
throw away most of the tests.
This commit is contained in:
2024-10-24 21:46:59 +01:00
parent ecd50c76c5
commit acb4cd38d7
9 changed files with 81 additions and 192 deletions

View File

@@ -4,6 +4,5 @@ fails=0
build/evaluator_tests || fails=`expr $fails + 1`
build/reader_tests || fails=`expr $fails + 1`
build/repl_tests || fails=`expr $fails + 1`
if [ $fails -eq 0 ]; then echo Tests OK; fi