unit tests, started on pattern matching
This commit is contained in:
parent
d23d417ff3
commit
05313652f9
9 changed files with 212 additions and 133 deletions
22
test_program
22
test_program
|
|
@ -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 ;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue