mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Some tests...
This commit is contained in:
parent
f340e3a32b
commit
cfff7895ed
18
tools/capone/test/if-not.ss
Normal file
18
tools/capone/test/if-not.ss
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
;;
|
||||||
|
;; if-not expression
|
||||||
|
;;
|
||||||
|
|
||||||
|
(load "../lib/common.ss")
|
||||||
|
|
||||||
|
(ut-add-test
|
||||||
|
"Check 'if-not' expression"
|
||||||
|
(begin
|
||||||
|
(define a 0)
|
||||||
|
(define b 1)
|
||||||
|
|
||||||
|
(and
|
||||||
|
(if-not a #f #t)
|
||||||
|
(if-not (= a 3) #t #f)
|
||||||
|
(if-not (= b 1) #f #t)
|
||||||
|
(if-not (= b 0) #t #f)
|
||||||
|
)))
|
@ -11,6 +11,7 @@
|
|||||||
(load "utest.ss")
|
(load "utest.ss")
|
||||||
(load "math.ss")
|
(load "math.ss")
|
||||||
(load "string.ss")
|
(load "string.ss")
|
||||||
|
(load "if-not.ss")
|
||||||
|
|
||||||
(ut-println "")
|
(ut-println "")
|
||||||
(ut-println " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=")
|
(ut-println " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=")
|
||||||
|
Loading…
Reference in New Issue
Block a user