mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 06:39:17 +02:00
Adding backslash line read tests.
This commit is contained in:
parent
86cc80f67f
commit
20a2c02b19
1 changed files with 5 additions and 0 deletions
|
@ -1725,6 +1725,11 @@
|
||||||
(test #x22 (char->integer (string-ref (read (open-input-string "\"\\\"\"")) 0)))
|
(test #x22 (char->integer (string-ref (read (open-input-string "\"\\\"\"")) 0)))
|
||||||
(test #x7C (char->integer (string-ref (read (open-input-string "\"\\|\"")) 0)))
|
(test #x7C (char->integer (string-ref (read (open-input-string "\"\\|\"")) 0)))
|
||||||
(test "line 1\nline 2\n" (read (open-input-string "\"line 1\nline 2\n\"")))
|
(test "line 1\nline 2\n" (read (open-input-string "\"line 1\nline 2\n\"")))
|
||||||
|
(test "line 1continued\n" (read (open-input-string "\"line 1\\\ncontinued\n\"")))
|
||||||
|
(test "line 1continued\n" (read (open-input-string "\"line 1\\ \ncontinued\n\"")))
|
||||||
|
(test "line 1continued\n" (read (open-input-string "\"line 1\\\n continued\n\"")))
|
||||||
|
(test "line 1continued\n" (read (open-input-string "\"line 1\\ \t \n \t continued\n\"")))
|
||||||
|
(test "line 1\n\nline 3\n" (read (open-input-string "\"line 1\\ \t \n \t \n\nline 3\n\"")))
|
||||||
(test #x03BB (char->integer (string-ref (read (open-input-string "\"\\x03BB;\"")) 0)))
|
(test #x03BB (char->integer (string-ref (read (open-input-string "\"\\x03BB;\"")) 0)))
|
||||||
|
|
||||||
(test-end)
|
(test-end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue