Skip to content

Commit

Permalink
Update for Juvix 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Sep 15, 2023
1 parent a94c617 commit a7ac74c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Example.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Stdlib.Data.Nat.Ord open;
tests : List Test :=
[testCase
"1 == 1"
(assertEqual eqNatI "1 /= 1" 1 1); testCase
(assertEqual "1 /= 1" 1 1); testCase
"not (1 == 1)"
(assertFalse "1 == 1" (1 == 1))];

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Stdlib.Prelude open;
import Test.JuvixUnit open;
tests : List Test :=
[testCase "1 == 1" (assertEqual eqNatI "1 /= 1" 1 1)];
[testCase "1 == 1" (assertEqual "1 /= 1" 1 1)];
main : IO := runTestSuite (testSuite "Example" tests);
```
Expand Down
4 changes: 2 additions & 2 deletions Test/JuvixUnit.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ assertJust {A} (msg : String) : Maybe A -> Assertion :=
assertNothing {A} (mkMsg : A -> String)
: Maybe A -> Assertion := maybe pass (fail ∘ mkMsg);

assertEqual {A} (eqI : Eq A) (msg : String) (a1 a2 : A)
: Assertion := failUnless msg (Eq.eq {{eqI}} a1 a2);
assertEqual {A} {{Eq A}} (msg : String) (a1 a2 : A)
: Assertion := failUnless msg (Eq.eq a1 a2);
2 changes: 1 addition & 1 deletion juvix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ dependencies:
ref: 4facf14d9b2d06b81ce1be1882aa9050f768cb45
name: stdlib
name: test
version: 0.6.0
version: 0.6.1

0 comments on commit a7ac74c

Please sign in to comment.