Expanded tests

This commit is contained in:
Devine Lu Linvega 2024-04-15 19:47:11 -07:00
parent 08173b4eb9
commit 45e0df792b
1 changed files with 26 additions and 0 deletions

View File

@ -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