2019-05-29 23:39:56 +03:00
|
|
|
/+ *test
|
|
|
|
|%
|
|
|
|
++ test-set
|
|
|
|
;: weld
|
|
|
|
%+ expect-eq
|
|
|
|
!> (some (sy 1 2 ~))
|
|
|
|
!> ((soft (set)) [2 [1 ~ ~] ~])
|
|
|
|
::
|
|
|
|
%+ expect-eq
|
|
|
|
!> ~
|
|
|
|
!> ((soft (set)) [2 ~ [1 ~ ~]])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ test-map
|
|
|
|
;: weld
|
|
|
|
%+ expect-eq
|
|
|
|
!> (some (my [1 2] [3 4] ~))
|
|
|
|
!> ((soft (map)) [[1 2] ~ [[3 4] ~ ~]])
|
|
|
|
::
|
|
|
|
%+ expect-eq
|
|
|
|
!> ~
|
|
|
|
!> ((soft (map)) [[1 2] [[3 4] ~ ~] ~])
|
|
|
|
==
|
2019-05-30 00:16:41 +03:00
|
|
|
::
|
|
|
|
++ test-qeu
|
|
|
|
;: weld
|
|
|
|
%+ expect-eq
|
|
|
|
!> (some (~(gas to *(qeu)) "abcd"))
|
|
|
|
!> ((soft (qeu)) [98 [100 ~ [99 ~ ~]] [97 ~ ~]])
|
|
|
|
::
|
|
|
|
%+ expect-eq
|
|
|
|
!> ~
|
2019-10-10 09:20:25 +03:00
|
|
|
!> ((soft (qeu)) [97 [98 ~ ~] [100 ~ [99 ~ ~]]])
|
2019-05-30 00:16:41 +03:00
|
|
|
==
|
2019-05-29 23:39:56 +03:00
|
|
|
--
|