Sha256: 2c67f256c04c2a3fd6088457414fe272ed2c78d653bdd7005352a776c7613bb0
Contents?: true
Size: 573 Bytes
Versions: 221
Compression:
Stored size: 573 Bytes
Contents
module Test.HelloWorld import HelloWorld %access export assertEq : Eq a => (given : a) -> (expected : a) -> IO () assertEq g e = putStrLn $ if g == e then "Test Passed" else "Test Failed" testNothing : IO () testNothing = assertEq (greet Nothing) "Hello, World!" testJustAlice : IO () testJustAlice = assertEq (greet (Just "Alice")) "Hello, Alice!" testJustBob : IO () testJustBob = assertEq (greet (Just "Bob")) "Hello, Bob!" runTests : IO () runTests = do testNothing testJustAlice testJustBob
Version data entries
221 entries across 221 versions & 1 rubygems