mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
normalize cram output slightly for comparison
This commit is contained in:
parent
cad9c98421
commit
3e75ba0466
@ -30,6 +30,16 @@
|
||||
?~ all !!
|
||||
?: =(mid i.all) [(flop hed) t.all]
|
||||
$(all t.all, hed :_(hed i.all))
|
||||
::
|
||||
++ strip
|
||||
|= a/manx ^- manx
|
||||
:_ (turn c.a ..$)
|
||||
?+ g.a g.a
|
||||
{@ {$id *} *} g.a(a t.a.g.a)
|
||||
{$$ {$$ *} $~}
|
||||
=< g.a(v.i.a (tufa (turn (tuba v.i.a.g.a) .)))
|
||||
|=(b/@c `@`?+(b b $~-~201c. '"', $~-~201d. '"'))
|
||||
==
|
||||
--
|
||||
::
|
||||
^- manx
|
||||
@ -69,7 +79,8 @@
|
||||
;p
|
||||
;- =/ pox (rush (role out) many:poxa)
|
||||
?~ pox "INVALID"
|
||||
?: =(u.pox (strip mar)) "COMPATIBLE"
|
||||
?: =(u.pox mar) "EQUIVALENT"
|
||||
?: =(u.pox (turn mar strip)) "COMPATIBLE"
|
||||
"DIVERGE"
|
||||
==
|
||||
== ==
|
||||
|
Loading…
Reference in New Issue
Block a user