Idris2/tests/chez/chez024/Envy.idr
Niklas Larsson 8540728202 Handle overwrite on windows
Expand test to test overwrite
2020-06-16 13:44:10 +02:00

21 lines
411 B
Idris

module Main
import System
main : IO ()
main = do
ok <- setEnv "HELLO" "HI" False
printLn ok
Just str <- getEnv "HELLO"
| Nothing => pure ()
putStrLn str
ok <- setEnv "HELLO" "HO" False
printLn ok
ok <- setEnv "HELLO" "EH" True
printLn ok
ok <- unsetEnv "HELLO"
printLn ok
Just str <- getEnv "HELLO"
| Nothing => putStrLn "Nothing there"
pure ()