epfl-archive/cs420-acc/l3-compiler/tests/prim-int-to-char.l3
2022-04-07 18:43:21 +02:00

10 lines
217 B
Scheme

;; 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