Idris2/tests/racket/mutex003/Main.idr
2021-03-15 13:43:12 +00:00

13 lines
225 B
Idris

-- Idris2
import System
import System.Concurrency
||| Test releasing without acquiring errors correctly
main : IO ()
main =
do m <- makeMutex
mutexRelease m
putStrLn "Released w/o acquiring (SHOULDN'T HAPPEN)"