mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
14 lines
301 B
Plaintext
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"
|
|
)
|
|
)
|