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

10 lines
217 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 @int->char primitive
(@byte-write 66)
(@byte-write (if (@= (@int->char 65) 'A') 65 63)) ;A
(@byte-write (if (@= (@int->char 8364) '€') 66 63)) ;B