Skip to content

Commit

Permalink
feat: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Aug 27, 2024
1 parent 4e278af commit 048a6af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Example.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ headMay {A} : List A -> Maybe A := map just >> head nothing;

tests : List Test :=
[ testCase "1 == 1" (assertEqual "1 /= 1" 1 1)
; testCase "2 > 1" (assertGreater "2 <= 1" 2 1)
; testCase "2 >= 1" (assertGreaterEqual "2 < 1" 2 1)
; testCase "1 >= 1" (assertGreaterEqual "1 < 1" 1 1)
; testCase "1 < 2" (assertLess "1 >= 2" 1 2)
; testCase "1 <= 2" (assertLessEqual "1 > 2" 1 2)
; testCase "1 <= 1" (assertLessEqual "1 > 1" 1 1)
; testCase "[1] == [1]" (assertEqual "[1] /= [1]" [1] [1])
; testCase "[2] > [1]" (assertGreater "2 <= 1" [2] [1])
; testCase "[2] >= [1]" (assertGreaterEqual "2 < 1" [2] [1])
; testCase "[1] >= [1]" (assertGreaterEqual "1 < 1" [1] [1])
; testCase "[1] < [2]" (assertLess "[1] >= [2]" [1] [2])
; testCase "[1] <= [2]" (assertLessEqual "[1] > [2]" [1] [2])
; testCase "[1] <= [1]" (assertLessEqual "[1] > [1]" [1] [1])
; testCase "length [1] == 1" (assertTrue "length [1] /= 1" (length [1] == 1))
; testCase
"headMay [] is nothing"
Expand Down

0 comments on commit 048a6af

Please sign in to comment.