Issue #379 - Added unit tests

This commit is contained in:
Justin Ethier 2021-07-26 18:55:17 -07:00
parent 197499aea4
commit 9356833ef6

View file

@ -17,5 +17,19 @@
(test '() (make-list -2))
)
(test-group
"I/O"
(define p (open-input-string "one\ntwo\n"))
(test #\o (read-char p))
(test "ne" (read-line p))
(test "two" (read-line p))
(test (eof-object) (read-line p))
(define p (open-input-string "one\ntwo\n"))
(test "one" (read-line p))
(test #\t (read-char p))
(test #\w (read-char p))
(test "o" (read-line p))
)
(test-exit)