mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +03:00
7c1dd210d7
Issue #236
12 lines
283 B
Plaintext
12 lines
283 B
Plaintext
(load "Test.carp")
|
|
(use Test)
|
|
(use Int)
|
|
(use String)
|
|
|
|
(defn main []
|
|
(with-test test
|
|
(assert-equal test 1 2 "1 == 2")
|
|
(assert-true test (Int.> (Array.length &[1 2 3]) 1) "len([1 2 3]) == 1")
|
|
(assert-not-equal test "hi" "bye" "hi != bye")
|
|
(print-test-results test)))
|