Skip to content

Commit

Permalink
Add cond-expand for memory streams
Browse files Browse the repository at this point in the history
  • Loading branch information
justinethier committed Dec 18, 2023
1 parent 334787b commit 1d775c5
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions tests/base.scm
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@
(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))
(cond-expand
(memory streams
(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-group
Expand Down

0 comments on commit 1d775c5

Please sign in to comment.