iutils-raku/examples/testy/test/src/Main.idr

20 lines
354 B
Idris
Raw Normal View History

2025-01-01 02:57:02 -05:00
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