adding test.char

This commit is contained in:
Chris Hall 2018-06-26 17:09:33 +10:00
parent 16bdd7f854
commit d768cc69f0

34
test/char.carp Normal file
View File

@ -0,0 +1,34 @@
(use Char)
(load "Test.carp")
(use Test)
(defn main []
(with-test test
(assert-true test
(= \a \a)
"char = works as expected I")
(assert-true test
(= &\a &\a)
"char = works as expected II")
(assert-true test
(/= \a \b)
"char /= works as expected I")
(assert-true test
(/= &\a &\b)
"char /= works as expected II")
(assert-true test
(< \a \b)
"char < works as expected I")
(assert-true test
(< &\a &\b)
"char < works as expected II")
(assert-true test
(> \b \a)
"char > works as expected I")
(assert-true test
(> &\b &\a)
"char > works as expected II")
(print-test-results test)
)
)