Added tests
This commit is contained in:
parent
05e620bac5
commit
111e143d2f
|
@ -9,12 +9,16 @@ nap tap test
|
||||||
|
|
||||||
?(?-) (Empty replacements)
|
?(?-) (Empty replacements)
|
||||||
|
|
||||||
<> (?x pop-plain)
|
<> (?x rightless/pop)
|
||||||
<> (?x pop) ()
|
<> (?x pop) ()
|
||||||
<> (ghost) ()
|
<> (ghost) ()
|
||||||
|
<> (prefix/pop ?x) (ok)
|
||||||
|
<> (?x suffix/pop) (ok)
|
||||||
|
|
||||||
abc def pop-plain = abc test
|
(abc rightless/pop) = () test
|
||||||
abc def pop = abc test
|
(prefix/pop foo) = (ok) test
|
||||||
|
(foo suffix/pop) = (ok) test
|
||||||
|
(abc def pop) = (abc) test
|
||||||
(ghost) = () test
|
(ghost) = () test
|
||||||
|
|
||||||
?(?-) (Basic replacements)
|
?(?-) (Basic replacements)
|
||||||
|
@ -25,13 +29,15 @@ replace-name (foo) (bar) test
|
||||||
|
|
||||||
?(?-) (Basic register setups)
|
?(?-) (Basic register setups)
|
||||||
|
|
||||||
<> (dup (?x)) ((?x ?x) =)
|
<> (dup (?x)) (?x ?x)
|
||||||
<> (swap (?x ?y)) ((?y ?x) =)
|
<> (swap (?x ?y)) (?y ?x)
|
||||||
<> (compare (?x ?x ?x)) ((#t) =)
|
<> (compare (?x ?x ?x)) (#t)
|
||||||
|
<> (rotate (?x (?y (?z)))) (?y (?z (?x)))
|
||||||
|
|
||||||
dup (abc) (abc abc) test
|
(dup (abc)) = (abc abc) test
|
||||||
swap (abc def) (def abc) test
|
(swap (abc def)) = (def abc) test
|
||||||
compare (abc abc abc) (#t) test
|
compare (abc abc abc) = #t test
|
||||||
|
(rotate (abc (def (ghi)))) = (def (ghi (abc))) test
|
||||||
|
|
||||||
?(?-) (Empty register replacement)
|
?(?-) (Empty register replacement)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue