mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +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"
|
|
)
|
|
)
|