uCBQN/test/cases/build-specific/test_group_stat.bqn
2025-03-13 23:36:02 +02:00

20 lines
1.4 KiB
BQN
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# needs: Singeli & -DTEST_GROUP_STAT
"basic test doesn't work; are you on a -DTEST_GROUP_STAT build?" ! 001109 •internal.Temp 10
%DEF tvar AllEq{v𝕩 {𝕩v?1;!𝕩v}¨ 𝕩 v} _tvar {Sel _𝕣 a: AllEq {Sel •internal.Temp 𝕩•internal.Variation a}¨ "Ai8""Ai16""Ai32"/ •internal.ListVariations •internal.Squeeze a}
%USE tvar _tvar 10 %% 001109
%USE tvar AllEq {a𝕩0 AllEq {_tvar ¯2(𝕩) a}¨ 𝕩}¨ 1+40 %% 1
%USE tvar AllEq {a𝕩0 AllEq {_tvar ¯128(𝕩) a}¨ 𝕩}¨ 1+40 %% 1
%USE tvar AllEq {_tvar 𝕩0}¨ 1+1000 %% 00110
%USE tvar AllEq {_tvar 𝕩10}¨ 1+1000 %% 001110
%USE tvar {! 0,0,0,𝕩,3 _tvar 𝕩32}¨ 2+1000
%USE tvar {! 0,0,1,𝕩,𝕩-1 _tvar 𝕩}¨ 1+1000
%USE tvar AllEq {a𝕩0 AllEq {0124_tvar 3(𝕩) a}¨ 𝕩-1}¨ 2+40 %% 0003
%USE tvar AllEq {a𝕩0 AllEq { _tvar 9(𝕩) a}¨ 1+𝕩-2}¨ 3+40 %% 00039
%USE tvar AllEq {a𝕩0 AllEq {014_tvar ¯1(𝕩) a}¨ 𝕩}¨ 2+40 %% 010
%USE tvar AllEq {a𝕩0 AllEq {014_tvar 12(𝕩) a}¨ 𝕩}¨ 1+40 %% 0012