Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniquemask(≠) tests #52

Merged
merged 22 commits into from
Feb 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use the same code coverage case for unique
sloorush committed Feb 14, 2024
commit 882bb9dd15c650734d652dfd3eca63b38afadea1
8 changes: 8 additions & 0 deletions tests/unique.apln
Original file line number Diff line number Diff line change
@@ -90,6 +90,14 @@
:For fr :In 2 1
⎕FR←fr⊃fr_dbl fr_decf

⍝ Independant
:For (u s) :In (2 10) (2 256) (10 10) (10 256) (256 256) (65536 65536)
case←u s
desc←testDesc⍬
x←s 2⍴?u⍴0
r,←'TICC' desc Assert (model x)≡(∪x)
:EndFor

:For case :In 'bool' 'i1' 'i2' 'i3' 'char1' 'char2' 'char3' 'ptr' 'dbl' 'fl' 'cmplx' 'Hdbl' 'Sdbl' 'Hfl' 'Hcmplx'
data←⍎case
desc←testDesc⍬
3 changes: 2 additions & 1 deletion tests/uniquemask.apln
Original file line number Diff line number Diff line change
@@ -101,7 +101,8 @@
:For (u s) :In (2 10) (2 256) (10 10) (10 256) (256 256) (65536 65536)
case←u s
desc←testDesc⍬
r,←'TICC' desc Assert (model s 2⍴?u⍴0)≡(≠s 2⍴?u⍴0)
x←s 2⍴?u⍴0
r,←'TICC' desc Assert (model x)≡(≠x)
:EndFor

:For case :In 'bool' 'i1' 'i2' 'i3' 'char1' 'char2' 'char3' 'ptr' 'dbl' 'fl' 'cmplx' 'Hdbl' 'Sdbl' 'Hfl' 'Hcmplx'