Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jan 29, 2025
1 parent ecc5689 commit 5801acb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Typecheck/Positive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ tests =
"Basic lambda functions"
$(mkRelDir "Internal")
$(mkRelFile "Lambda.juvix"),
posTest
"AnomaSet"
$(mkRelDir "Internal")
$(mkRelFile "AnomaSet.juvix"),
posTest
"Simple mutual inference"
$(mkRelDir "Internal")
Expand Down
26 changes: 26 additions & 0 deletions tests/positive/Internal/AnomaSet.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module AnomaSet;

type Bool :=
| false
| true;

builtin list
type List a :=
| nil
| cons a (List a);

Logic : Type := Instance -> Bool;

builtin anoma-set
axiom AnomaSet : Type -> Type;

builtin anoma-set-to-list
axiom anomaSetToList {A} (set : AnomaSet A) : List A;

type Resource :=
mkResource@{
logic : Logic;
};

positive
type Instance := mkInstance@{};

0 comments on commit 5801acb

Please sign in to comment.