5%access export -- to make the test functions visible
7assertEq : Eq a => (given : a) -> (expected : a) -> IO ()
8assertEq g e = if g == e
9 then putStrLn "Test Passed"
10 else putStrLn "Test Failed"
12assertNotEq : Eq a => (given : a) -> (expected : a) -> IO ()
13assertNotEq g e = if not (g == e)
14 then putStrLn "Test Passed"
15 else putStrLn "Test Failed"
18testDouble = assertEq (double 2) 4
21testTriple = assertNotEq (triple 2) 5
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list