mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 10:32:34 +03:00
or-map: added get arm and tested it
This commit is contained in:
parent
d272da0f57
commit
24e0d597ba
@ -256,7 +256,7 @@
|
|||||||
?~ a ~
|
?~ a ~
|
||||||
?: =(b key.n.a)
|
?: =(b key.n.a)
|
||||||
`val.n.a
|
`val.n.a
|
||||||
?: (ord b key.n.a)
|
?: (compare b key.n.a)
|
||||||
$(a l.a)
|
$(a l.a)
|
||||||
$(a r.a)
|
$(a r.a)
|
||||||
::
|
::
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
=/ a=(tree [@ud @tas]) (gas:atom-map ~ test-items)
|
=/ a=(tree [@ud @tas]) (gas:atom-map ~ test-items)
|
||||||
::
|
::
|
||||||
%+ expect-eq
|
%+ expect-eq
|
||||||
!> [~ [0^%a]]
|
!> [~ %d]
|
||||||
!> (get:atom-map a 0)
|
!> (get:atom-map a 3)
|
||||||
::
|
::
|
||||||
++ test-ordered-map-sig-get ^- tang
|
++ test-ordered-map-sig-get ^- tang
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user