Idris2/tests/node/node027/PID.idr

11 lines
154 B
Idris
Raw Normal View History

2021-12-22 17:25:21 +03:00
import System
assert : Bool -> IO ()
assert b = if b
then pure ()
else assert_total $ idris_crash ""
main : IO ()
main = do
assert $ !getPID /= 0