Carp/test/io.carp

14 lines
301 B
Plaintext
Raw Normal View History

2020-01-25 16:23:14 +03:00
(load "Test.carp")
(use-all IO Test)
(deftest test
(assert-nothing test
&(IO.getenv @"thisdoesnotexist")
"getenv works on non-existant variable"
2020-01-25 16:23:14 +03:00
)
(assert-just test
&(IO.getenv @"PATH")
2020-01-25 16:23:14 +03:00
"getenv works on existant variable"
)
)