Init
This commit is contained in:
14
cs420-acc/l3-warmup/tests/prim-intp.l3
Normal file
14
cs420-acc/l3-warmup/tests/prim-intp.l3
Normal file
@@ -0,0 +1,14 @@
|
||||
;; In Emacs, open this file in -*- Scheme -*- mode
|
||||
|
||||
;; Test the @int? primitive
|
||||
|
||||
(@byte-write 72)
|
||||
|
||||
(@byte-write (if (@int? 0) 65 63)) ;A
|
||||
(@byte-write (if (@int? 1073741823) 66 63)) ;B
|
||||
(@byte-write (if (@int? -1073741824) 67 63)) ;C
|
||||
(@byte-write (if (@int? '1') 63 68)) ;D
|
||||
(@byte-write (if (@int? "1") 63 69)) ;E
|
||||
(@byte-write (if (@int? #t) 63 70)) ;F
|
||||
(@byte-write (if (@int? #f) 63 71)) ;G
|
||||
(@byte-write (if (@int? #u) 63 72)) ;H
|
Reference in New Issue
Block a user