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