Expanded tests
This commit is contained in:
parent
08173b4eb9
commit
45e0df792b
|
@ -4,6 +4,20 @@
|
||||||
<> (?x = ?x test) (#ok)
|
<> (?x = ?x test) (#ok)
|
||||||
<> (?x = ?y test) (#fail)
|
<> (?x = ?y test) (#fail)
|
||||||
|
|
||||||
|
?(?-) (Empty replacements)
|
||||||
|
|
||||||
|
<> (?x pop-plain)
|
||||||
|
<> (?x pop) ()
|
||||||
|
|
||||||
|
abc def pop-plain = abc test
|
||||||
|
abc def pop = abc test
|
||||||
|
|
||||||
|
?(?-) (Basic replacements)
|
||||||
|
|
||||||
|
<> (replace-name (foo)) ((bar) =)
|
||||||
|
|
||||||
|
replace-name (foo) (bar) test
|
||||||
|
|
||||||
?(?-) (Basic register setups)
|
?(?-) (Basic register setups)
|
||||||
|
|
||||||
<> (dup (?x)) ((?x ?x) =)
|
<> (dup (?x)) ((?x ?x) =)
|
||||||
|
@ -17,4 +31,16 @@ compare (abc abc abc) (#t) test
|
||||||
?(?-) (Lambdas)
|
?(?-) (Lambdas)
|
||||||
|
|
||||||
?((?x) ((?x ?x) =)) abc (abc abc) test
|
?((?x) ((?x ?x) =)) abc (abc abc) test
|
||||||
|
abc ?(?x) def = abc test
|
||||||
|
|
||||||
|
?(?-) (Explode)
|
||||||
|
|
||||||
|
<> (explode ?*) ((?*) =)
|
||||||
|
|
||||||
|
explode cow (c (o (w ()))) test
|
||||||
|
|
||||||
|
?(?-) (Implode)
|
||||||
|
|
||||||
|
<> (implode ?*) (?* =)
|
||||||
|
|
||||||
|
implode (b (a (t ()))) bat test
|
||||||
|
|
Loading…
Reference in New Issue