|
|
@ -6,25 +6,25 @@
|
|
|
|
(check-equal? (syntax->datum (parse ""))
|
|
|
|
(check-equal? (syntax->datum (parse ""))
|
|
|
|
'(equal))
|
|
|
|
'(equal))
|
|
|
|
(check-equal? (syntax->datum (parse "01"))
|
|
|
|
(check-equal? (syntax->datum (parse "01"))
|
|
|
|
'(equal (zero (equal) #\0)
|
|
|
|
'(equal (zero (equal) "0")
|
|
|
|
(one (equal) #\1)))
|
|
|
|
(one (equal) "1")))
|
|
|
|
(check-equal? (syntax->datum (parse "10"))
|
|
|
|
(check-equal? (syntax->datum (parse "10"))
|
|
|
|
'(equal (one (equal) #\1)
|
|
|
|
'(equal (one (equal) "1")
|
|
|
|
(zero (equal) #\0)))
|
|
|
|
(zero (equal) "0")))
|
|
|
|
(check-equal? (syntax->datum (parse "0011"))
|
|
|
|
(check-equal? (syntax->datum (parse "0011"))
|
|
|
|
'(equal (zero (equal) #\0)
|
|
|
|
'(equal (zero (equal) "0")
|
|
|
|
(one (equal (zero (equal) #\0)
|
|
|
|
(one (equal (zero (equal) "0")
|
|
|
|
(one (equal) #\1))
|
|
|
|
(one (equal) "1"))
|
|
|
|
#\1)))
|
|
|
|
"1")))
|
|
|
|
(check-equal? (syntax->datum (parse "0110"))
|
|
|
|
(check-equal? (syntax->datum (parse "0110"))
|
|
|
|
'(equal (one (equal (zero (equal) #\0)
|
|
|
|
'(equal (one (equal (zero (equal) "0")
|
|
|
|
(one (equal) #\1))
|
|
|
|
(one (equal) "1"))
|
|
|
|
#\1)
|
|
|
|
"1")
|
|
|
|
(zero (equal) #\0)))
|
|
|
|
(zero (equal) "0")))
|
|
|
|
|
|
|
|
|
|
|
|
(check-equal? (syntax->datum (parse "1100"))
|
|
|
|
(check-equal? (syntax->datum (parse "1100"))
|
|
|
|
'(equal (one (equal) #\1)
|
|
|
|
'(equal (one (equal) "1")
|
|
|
|
(zero (equal (one (equal) #\1)
|
|
|
|
(zero (equal (one (equal) "1")
|
|
|
|
(zero (equal) #\0))
|
|
|
|
(zero (equal) "0"))
|
|
|
|
#\0)))
|
|
|
|
"0")))
|
|
|
|
|
|
|
|
|
|
|
|