unit tests, started on pattern matching

This commit is contained in:
sebastianselander 2023-02-28 17:15:48 +01:00
parent d23d417ff3
commit 05313652f9
9 changed files with 212 additions and 133 deletions

View file

@ -1,14 +1,12 @@
data List ('a) where;
Nil : List ('a),
Cons : 'a -> List ('a) -> List ('a) ;
data List ('a) where {
Nil : List ('a)
Cons : 'a -> List ('a) -> List ('a)
};
main : List (_Int) ;
data Bool () where {
True : Bool ()
False : Bool ()
};
main : List ('a) ;
main = Cons 1 (Cons 0 Nil) ;
data Bool () where;
True : Bool (),
False : Bool ();
boolean : Bool (_Int);
boolean = True ;