Skip to content

Commit

Permalink
fix tests and stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Nov 4, 2024
1 parent 1a24705 commit 7ee7d24
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions tests/Anoma/Compilation/positive/test060.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ main : Triple Nat Nat Nat :=
p : Triple Nat Nat Nat := mkTriple 2 2 2;
p' : Triple Nat Nat Nat :=
p@Triple{
fst := fst + 1;
snd := snd * 3 + thd + fst
fst := @fst + 1;
snd := @snd * 3 + @thd + @fst
};
f : Triple Nat Nat Nat -> Triple Nat Nat Nat :=
(@Triple{fst := fst * 10});
(@Triple{fst := @fst * 10});
in ite
(mf
mkPair@{
Expand Down
6 changes: 3 additions & 3 deletions tests/Casm/Compilation/positive/test060.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ main : Nat :=
p : Triple Nat Nat Nat := mkTriple 2 2 2;
p' : Triple Nat Nat Nat :=
p@Triple{
fst := fst + 1;
snd := snd * 3 + thd + fst
fst := @fst + 1;
snd := @snd * 3 + @thd + @fst
};
f : Triple Nat Nat Nat -> Triple Nat Nat Nat :=
(@Triple{fst := fst * 10});
(@Triple{fst := @fst * 10});
in sum <| ite
(mf
mkPair@{
Expand Down
4 changes: 2 additions & 2 deletions tests/Compilation/positive/test060.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ mf : Pair' (Pair' Bool (List Nat)) (List Nat) → Bool
main : Triple Nat Nat Nat :=
let
p : Triple Nat Nat Nat := mkTriple 2 2 2;
p' : Triple Nat Nat Nat := p@Triple{fst := fst + 1; snd := snd * 3 + thd + fst};
f : Triple Nat Nat Nat -> Triple Nat Nat Nat := (@Triple{fst := fst * 10});
p' : Triple Nat Nat Nat := p@Triple{fst := @fst + 1; snd := @snd * 3 + @thd + @fst};
f : Triple Nat Nat Nat -> Triple Nat Nat Nat := (@Triple{fst := @fst * 10});
pp :=
mkPair@{
fst :=
Expand Down
6 changes: 3 additions & 3 deletions tests/Rust/Compilation/positive/test060.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ main : Nat :=
p : Triple Nat Nat Nat := mkTriple 2 2 2;
p' : Triple Nat Nat Nat :=
p@Triple{
fst := fst + 1;
snd := snd * 3 + thd + fst
fst := @fst + 1;
snd := @snd * 3 + @thd + @fst
};
f : Triple Nat Nat Nat -> Triple Nat Nat Nat :=
(@Triple{fst := fst * 10});
(@Triple{fst := @fst * 10});
in sum <| ite
(mf
mkPair@{
Expand Down
2 changes: 1 addition & 1 deletion tests/positive/Records2.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ type Pair (A B : Type) :=
main : Pair Nat Nat :=
let
p : Pair Nat Nat := mkPair 2 2;
in p@Pair{pfst := pfst + psnd};
in p@Pair{pfst := @pfst + @psnd};

0 comments on commit 7ee7d24

Please sign in to comment.