1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +00:00
janet/gsttests/basic.gst

9 lines
235 B
Plaintext
Raw Normal View History

2017-06-20 03:01:34 +00:00
(do
2017-03-26 15:47:58 +00:00
(: assert (fn [x e] (if x x (do (print e) (exit 1)))))
2017-06-20 03:01:34 +00:00
(assert (= 10 (+ 1 2 3 4)) "addition")
(assert (= -8 (- 1 2 3 4)) "subtraction")
(assert (= 24 (* 1 2 3 4)) "multiplication")
(assert (= 0.1 (/ 1.0 10)) "division")
2017-03-26 15:47:58 +00:00
(exit 0)
2017-06-20 03:01:34 +00:00
)