Skip to content

Commit

Permalink
Fix tests now that for comes from Foldable trait
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Jul 31, 2024
1 parent f2d6ef2 commit 64f7ade
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/Anoma/Compilation/positive/test054.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Stdlib.Prelude open;

syntax iterator myfor;
myfor : {A B : Type} → (A → B → A) → A → List B → A :=
foldl {_} {_};
foldl {_} {_} {{_}} {_};

syntax iterator mymap {init := 0};
mymap : {A B : Type} → (A → B) → List A → List B
Expand Down
2 changes: 1 addition & 1 deletion tests/Anoma/Compilation/positive/test061.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tListI {A} {{T A}} : T (List A) :=
mkT@{
toNat {A} {{T A}} (xs : List A) : Nat :=
for (acc := 0) (x in xs)
acc + T.toNat x
acc + T.toNat {A} x
};

g : {A : Type} → {{T A}} → Nat := 5;
Expand Down
2 changes: 1 addition & 1 deletion tests/Casm/Compilation/positive/test054.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Stdlib.Prelude open;

syntax iterator myfor;
myfor : {A B : Type} → (A → B → A) → A → List B → A :=
foldl {_} {_};
foldl {_} {_} {{_}} {_};

syntax iterator mymap {init := 0};
mymap : {A B : Type} → (A → B) → List A → List B
Expand Down
2 changes: 1 addition & 1 deletion tests/Compilation/positive/test054.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Stdlib.Prelude open;

syntax iterator myfor;
myfor : {A B : Type} → (A → B → A) → A → List B → A :=
foldl {_} {_};
foldl {_} {_} {{_}} {_};

syntax iterator mymap {init := 0};
mymap : {A B : Type} → (A → B) → List A → List B
Expand Down
2 changes: 1 addition & 1 deletion tests/Rust/Compilation/positive/test054.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Stdlib.Prelude open;

syntax iterator myfor;
myfor : {A B : Type} → (A → B → A) → A → List B → A :=
foldl {_} {_};
foldl {_} {_} {{_}} {_};

syntax iterator mymap {init := 0};
mymap : {A B : Type} → (A → B) → List A → List B
Expand Down

0 comments on commit 64f7ade

Please sign in to comment.