mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-30 02:12:22 +03:00
e888960370
Including these in pkg/arvo has caused many minor problems over the years. We don't want to include them in releases, but this often meant excluding them manually, which was error-prone. Here, we move them out of /pkg/arvo/tests and into /tests. CI will have to be updated to match, since we'll still want to include tests there.
39 lines
743 B
Plaintext
39 lines
743 B
Plaintext
/+ *test
|
|
|%
|
|
:: nock 6 should allow invalid formulas in unevaluated branches
|
|
::
|
|
++ test-conditional-skips
|
|
;: weld
|
|
%+ expect-eq
|
|
!> 43
|
|
!> .*(~ [%6 [%1 1] 0 [%1 43]])
|
|
::
|
|
%- expect-fail
|
|
|. .*(~ [%6 [%1 0] 0 [%1 43]])
|
|
::
|
|
%+ expect-eq
|
|
!> 42
|
|
!> .*(~ [%6 [%1 0] [%1 42] 0])
|
|
::
|
|
%- expect-fail
|
|
|. .*(~ [%6 [%1 1] [%1 42] 0])
|
|
::
|
|
%+ expect-eq
|
|
!> 42
|
|
!> .*(~ [%6 [%1 0] [%1 42] %1 43])
|
|
::
|
|
%+ expect-eq
|
|
!> 43
|
|
!> .*(~ [%6 [%1 1] [%1 42] %1 43])
|
|
::
|
|
%- expect-fail
|
|
|. .*(~ [%6 [%1 2] [%1 42] %1 43])
|
|
==
|
|
:: nock 9 should support axis 1
|
|
::
|
|
++ test-call-one
|
|
%+ expect-eq
|
|
!> 0
|
|
!> .*([3 0 1] [9 1 [0 1]])
|
|
--
|