Carp/test/io.carp

14 lines
301 B
Plaintext

(load "Test.carp")
(use-all IO Test)
(deftest test
(assert-nothing test
&(IO.getenv @"thisdoesnotexist")
"getenv works on non-existant variable"
)
(assert-just test
&(IO.getenv @"PATH")
"getenv works on existant variable"
)
)