Fix typo, alerm -> alarm.
This commit also enables some tests to catch more regressions. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
parent
ab7ed0531c
commit
16b427b8c4
|
@ -2099,14 +2099,14 @@
|
||||||
;; (test-read-error "(#; #;x #;y . z)")
|
;; (test-read-error "(#; #;x #;y . z)")
|
||||||
;; (test-read-error "(#; #;x . z)")
|
;; (test-read-error "(#; #;x . z)")
|
||||||
|
|
||||||
;; (test #\a (read (open-input-string "#\\a")))
|
(test #\a (read (open-input-string "#\\a")))
|
||||||
;; (test #\space (read (open-input-string "#\\space")))
|
(test #\space (read (open-input-string "#\\space")))
|
||||||
;; (test 0 (char->integer (read (open-input-string "#\\null"))))
|
(test 0 (char->integer (read (open-input-string "#\\null"))))
|
||||||
;; (test 7 (char->integer (read (open-input-string "#\\alarm"))))
|
(test 7 (char->integer (read (open-input-string "#\\alarm"))))
|
||||||
;; (test 8 (char->integer (read (open-input-string "#\\backspace"))))
|
(test 8 (char->integer (read (open-input-string "#\\backspace"))))
|
||||||
;; (test 9 (char->integer (read (open-input-string "#\\tab"))))
|
(test 9 (char->integer (read (open-input-string "#\\tab"))))
|
||||||
;; (test 10 (char->integer (read (open-input-string "#\\newline"))))
|
(test 10 (char->integer (read (open-input-string "#\\newline"))))
|
||||||
;; (test 13 (char->integer (read (open-input-string "#\\return"))))
|
(test 13 (char->integer (read (open-input-string "#\\return"))))
|
||||||
;; (test #x7F (char->integer (read (open-input-string "#\\delete"))))
|
;; (test #x7F (char->integer (read (open-input-string "#\\delete"))))
|
||||||
;; (test #x1B (char->integer (read (open-input-string "#\\escape"))))
|
;; (test #x1B (char->integer (read (open-input-string "#\\escape"))))
|
||||||
;; (test #x03BB (char->integer (read (open-input-string "#\\λ"))))
|
;; (test #x03BB (char->integer (read (open-input-string "#\\λ"))))
|
||||||
|
|
|
@ -429,7 +429,7 @@ read_char(pic_state *pic, struct pic_port *port, int c)
|
||||||
if (! isdelim(peek(pic, port))) {
|
if (! isdelim(peek(pic, port))) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
default: read_error(pic, "unexpected character after char literal");
|
default: read_error(pic, "unexpected character after char literal");
|
||||||
case 'a': c = '\a'; if (! expect(pic, port, "lerm")) goto fail; break;
|
case 'a': c = '\a'; if (! expect(pic, port, "larm")) goto fail; break;
|
||||||
case 'b': c = '\b'; if (! expect(pic, port, "ackspace")) goto fail; break;
|
case 'b': c = '\b'; if (! expect(pic, port, "ackspace")) goto fail; break;
|
||||||
case 'd': c = 0x7F; if (! expect(pic, port, "elete")) goto fail; break;
|
case 'd': c = 0x7F; if (! expect(pic, port, "elete")) goto fail; break;
|
||||||
case 'e': c = 0x1B; if (! expect(pic, port, "scape")) goto fail; break;
|
case 'e': c = 0x1B; if (! expect(pic, port, "scape")) goto fail; break;
|
||||||
|
|
Loading…
Reference in New Issue