Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Sep 14, 2023
1 parent 0945d54 commit 128b589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Compilation/positive/out/test061.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ just (true) :: nothing :: just (false) :: nil
just (1 :: nil) :: nothing :: just (2 :: 3 :: nil) :: nil
abba
abba!
abba3
a :: b :: c :: d :: nil
3 changes: 3 additions & 0 deletions tests/Compilation/positive/test061.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ f'3 {A} {{M : Show A}} : A → String := Show.show {{M}};

f'4 {A} {{_ : Show A}} : A → String := Show.show;

f5 {A} {{Show A}} (n : String) (a : A) : String := n ++str Show.show a;

main : IO :=
printStringLn (Show.show true) >>
printStringLn (f false) >>
Expand All @@ -60,4 +62,5 @@ main : IO :=
printStringLn (f'4 [just [1]; nothing; just [2; 3]]) >>
printStringLn (f'3 "abba") >>
printStringLn (f'3 {{M := mkShow (λ{x := x ++str "!"})}} "abba") >>
printStringLn (f5 "abba" 3) >>
printStringLn (Show.show ["a"; "b"; "c"; "d"]);

0 comments on commit 128b589

Please sign in to comment.