mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
tests: add test to make sure subtree is being modified properly in +del-span
This commit is contained in:
parent
915c548037
commit
a25f8028f4
@ -5413,7 +5413,7 @@
|
|||||||
?: ?&(?=(~ b) =(c 0))
|
?: ?&(?=(~ b) =(c 0))
|
||||||
[0 ~]
|
[0 ~]
|
||||||
=| f=[d=@ e=(list item)]
|
=| f=[d=@ e=(list item)]
|
||||||
|- ^- [d=@ e=(list item)]
|
|- ^+ f
|
||||||
?: ?|(?=(~ a) =(d.f c)) f
|
?: ?|(?=(~ a) =(d.f c)) f
|
||||||
=. f $(a l.a)
|
=. f $(a l.a)
|
||||||
?: =(d.f c) f
|
?: =(d.f c) f
|
||||||
|
@ -84,6 +84,14 @@
|
|||||||
!> small-test-items
|
!> small-test-items
|
||||||
!> (tab:atom-map a ~ 3)
|
!> (tab:atom-map a ~ 3)
|
||||||
::
|
::
|
||||||
|
++ test-ordered-map-tab-more-than-exist ^- tang
|
||||||
|
::
|
||||||
|
=/ a=(tree [@ud @tas]) (gas:atom-map ~ test-items)
|
||||||
|
::
|
||||||
|
%+ expect-eq
|
||||||
|
!> test-items
|
||||||
|
!> (tab:atom-map a [~ 0] 8)
|
||||||
|
::
|
||||||
++ test-ordered-map-pop ^- tang
|
++ test-ordered-map-pop ^- tang
|
||||||
::
|
::
|
||||||
=/ a=(tree [@ud @tas]) (gas:atom-map ~ test-items)
|
=/ a=(tree [@ud @tas]) (gas:atom-map ~ test-items)
|
||||||
|
Loading…
Reference in New Issue
Block a user