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