Skip to content

Commit

Permalink
Add test that touches the new implementation of environ
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Jul 3, 2024
1 parent 8096a62 commit 1778984
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/base/system_get_environment/Test.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import System

main : IO ()
main = do
env <- getEnvironment
-- it better be non-empty because we set a variable before starting this test
printLn $ null env

1 change: 1 addition & 0 deletions tests/base/system_get_environment/expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
False
4 changes: 4 additions & 0 deletions tests/base/system_get_environment/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../testutils.sh

idris2 --cg chez -o test Test.idr
HELLO=hi ./build/exec/test

0 comments on commit 1778984

Please sign in to comment.