mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
8540728202
Expand test to test overwrite
21 lines
411 B
Idris
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 ()
|