mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Issue #379 - Added unit tests
This commit is contained in:
parent
197499aea4
commit
9356833ef6
1 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue