epfl-archive/cs420-acc/l3-warmup/tests/prim-char-to-int.l3

9 lines
216 B
Plaintext
Raw Permalink Normal View History

2022-04-07 18:33:05 +02:00
;; In Emacs, open this file in -*- Scheme -*- mode
;; Test the @char->int primitive
(@byte-write 66)
(@byte-write (@char->int 'A')) ;A
(@byte-write (if (@= (@char->int '€') 8364) 66 63)) ;B