iutils-raku/examples/testy/test/src/Main.idr
2025-01-01 02:57:02 -05:00

19 lines
354 B
Idris

module Main
import System
-- @@test Main Test
main : IO ()
main = putStrLn "Test successful!"
-- @@test Failing integration with error message
ohNo : IO ()
ohNo = do
putStrLn "Something horrible has happened"
exitFailure
-- @@test Passing integration with output
ohYes : IO ()
ohYes = do
putStrLn "Something amazing has happened"
exitSuccess