openscad version [2021, 1, 0]
[ test ] t01 PASSED: 'binary_bit_is_0(undef, undef)=undef'
[ test ] t02 PASSED: 'binary_bit_is_0([], [])=undef'
[ test ] t03 PASSED: 'binary_bit_is_0(254, 0)=true'
[ test ] t04 PASSED: 'binary_bit_is_0(254, 1)=false'
[ test ] t05 PASSED: 'binary_bit_is_0(255, 0)=false'
[ test ] t06 PASSED: 'binary_bit_is_0(0, 255)=true'
[ test ] t07 PASSED: 'binary_bit_is_0(126, 63)=true'
[ test ] t08 PASSED: 'binary_bit_is_0(25, 10)=true'
[ test ] t09 PASSED: 'binary_bit_is_0(1024, 512)=true'
[ test ] t10 PASSED: 'binary_bit_is_0(4253, 315)=true'
[ test ] t11 PASSED: 'binary_bit_is_0(835, 769)=true'
[ test ] t12 PASSED: 'binary_bit_is_0(856, 625)=true'
[ test ] t01 PASSED: 'binary_bit_is_1(undef, undef)=undef'
[ test ] t02 PASSED: 'binary_bit_is_1([], [])=undef'
[ test ] t03 PASSED: 'binary_bit_is_1(254, 0)=false'
[ test ] t04 PASSED: 'binary_bit_is_1(254, 1)=true'
[ test ] t05 PASSED: 'binary_bit_is_1(255, 0)=true'
[ test ] t06 PASSED: 'binary_bit_is_1(0, 255)=false'
[ test ] t07 PASSED: 'binary_bit_is_1(126, 63)=false'
[ test ] t08 PASSED: 'binary_bit_is_1(25, 10)=false'
[ test ] t09 PASSED: 'binary_bit_is_1(1024, 512)=false'
[ test ] t10 PASSED: 'binary_bit_is_1(4253, 315)=false'
[ test ] t11 PASSED: 'binary_bit_is_1(835, 769)=false'
[ test ] t12 PASSED: 'binary_bit_is_1(856, 625)=false'
[ test ] t01 PASSED: 'binary_i2v(undef)=undef'
[ test ] t02 PASSED: 'binary_i2v([])=undef'
[ test ] t03 PASSED: 'binary_i2v(254)=[1, 1, 1, 1, 1, 1, 1, 0]'
[ test ] t04 PASSED: 'binary_i2v(254)=[1, 1, 1, 1, 1, 1, 1, 0]'
[ test ] t05 PASSED: 'binary_i2v(255)=[1, 1, 1, 1, 1, 1, 1, 1]'
[ test ] t06 PASSED: 'binary_i2v(0)=[0]'
[ test ] t07 PASSED: 'binary_i2v(126)=[1, 1, 1, 1, 1, 1, 0]'
[ test ] t08 PASSED: 'binary_i2v(25)=[1, 1, 0, 0, 1]'
[ test ] t09 PASSED: 'binary_i2v(1024)=[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]'
[ test ] t10 PASSED: 'binary_i2v(4253)=[1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1]'
[ test ] t11 PASSED: 'binary_i2v(835)=[1, 1, 0, 1, 0, 0, 0, 0, 1, 1]'
[ test ] t12 PASSED: 'binary_i2v(856)=[1, 1, 0, 1, 0, 1, 1, 0, 0, 0]'
[ test ] t01 PASSED: 'binary_i2v_v2i(undef)=0'
[ test ] t02 PASSED: 'binary_i2v_v2i([])=0'
[ test ] t03 PASSED: 'binary_i2v_v2i(254)=254'
[ test ] t04 PASSED: 'binary_i2v_v2i(254)=254'
[ test ] t05 PASSED: 'binary_i2v_v2i(255)=255'
[ test ] t06 PASSED: 'binary_i2v_v2i(0)=0'
[ test ] t07 PASSED: 'binary_i2v_v2i(126)=126'
[ test ] t08 PASSED: 'binary_i2v_v2i(25)=25'
[ test ] t09 PASSED: 'binary_i2v_v2i(1024)=1024'
[ test ] t10 PASSED: 'binary_i2v_v2i(4253)=4253'
[ test ] t11 PASSED: 'binary_i2v_v2i(835)=835'
[ test ] t12 PASSED: 'binary_i2v_v2i(856)=856'
[ test ] t01 PASSED: 'binary_i2s(undef)=undef'
[ test ] t02 PASSED: 'binary_i2s([])=undef'
[ test ] t03 PASSED: 'binary_i2s(254)=11111110'
[ test ] t04 PASSED: 'binary_i2s(254)=11111110'
[ test ] t05 PASSED: 'binary_i2s(255)=11111111'
[ test ] t06 PASSED: 'binary_i2s(0)=0'
[ test ] t07 PASSED: 'binary_i2s(126)=1111110'
[ test ] t08 PASSED: 'binary_i2s(25)=11001'
[ test ] t09 PASSED: 'binary_i2s(1024)=10000000000'
[ test ] t10 PASSED: 'binary_i2s(4253)=1000010011101'
[ test ] t11 PASSED: 'binary_i2s(835)=1101000011'
[ test ] t12 PASSED: 'binary_i2s(856)=1101011000'
[ test ] t01 PASSED: 'binary_i2s_s2i(undef)=0'
[ test ] t02 PASSED: 'binary_i2s_s2i([])=0'
[ test ] t03 PASSED: 'binary_i2s_s2i(254)=254'
[ test ] t04 PASSED: 'binary_i2s_s2i(254)=254'
[ test ] t05 PASSED: 'binary_i2s_s2i(255)=255'
[ test ] t06 PASSED: 'binary_i2s_s2i(0)=0'
[ test ] t07 PASSED: 'binary_i2s_s2i(126)=126'
[ test ] t08 PASSED: 'binary_i2s_s2i(25)=25'
[ test ] t09 PASSED: 'binary_i2s_s2i(1024)=1024'
[ test ] t10 PASSED: 'binary_i2s_s2i(4253)=4253'
[ test ] t11 PASSED: 'binary_i2s_s2i(835)=835'
[ test ] t12 PASSED: 'binary_i2s_s2i(856)=856'
[ test ] t01 PASSED: 'binary_iw2i_32(undef)=undef'
[ test ] t02 PASSED: 'binary_iw2i_32([])=undef'
[ test ] t03 PASSED: 'binary_iw2i_32(254)=7'
[ test ] t04 PASSED: 'binary_iw2i_32(254)=7'
[ test ] t05 PASSED: 'binary_iw2i_32(255)=7'
[ test ] t06 PASSED: 'binary_iw2i_32(0)=0'
[ test ] t07 PASSED: 'binary_iw2i_32(126)=7'
[ test ] t08 PASSED: 'binary_iw2i_32(25)=6'
[ test ] t09 PASSED: 'binary_iw2i_32(1024)=0'
[ test ] t10 PASSED: 'binary_iw2i_32(4253)=7'
[ test ] t11 PASSED: 'binary_iw2i_32(835)=0'
[ test ] t12 PASSED: 'binary_iw2i_32(856)=6'
[ test ] t01 PASSED: 'binary_and(undef, undef)=undef'
[ test ] t02 PASSED: 'binary_and([], [])=undef'
[ test ] t03 PASSED: 'binary_and(254, 0)=0'
[ test ] t04 PASSED: 'binary_and(254, 1)=0'
[ test ] t05 PASSED: 'binary_and(255, 0)=0'
[ test ] t06 PASSED: 'binary_and(0, 255)=0'
[ test ] t07 PASSED: 'binary_and(126, 63)=62'
[ test ] t08 PASSED: 'binary_and(25, 10)=8'
[ test ] t09 PASSED: 'binary_and(1024, 512)=0'
[ test ] t10 PASSED: 'binary_and(4253, 315)=25'
[ test ] t11 PASSED: 'binary_and(835, 769)=769'
[ test ] t12 PASSED: 'binary_and(856, 625)=592'
[ test ] t01 PASSED: 'binary_or(undef, undef)=undef'
[ test ] t02 PASSED: 'binary_or([], [])=undef'
[ test ] t03 PASSED: 'binary_or(254, 0)=254'
[ test ] t04 PASSED: 'binary_or(254, 1)=255'
[ test ] t05 PASSED: 'binary_or(255, 0)=255'
[ test ] t06 PASSED: 'binary_or(0, 255)=255'
[ test ] t07 PASSED: 'binary_or(126, 63)=127'
[ test ] t08 PASSED: 'binary_or(25, 10)=27'
[ test ] t09 PASSED: 'binary_or(1024, 512)=1536'
[ test ] t10 PASSED: 'binary_or(4253, 315)=4543'
[ test ] t11 PASSED: 'binary_or(835, 769)=835'
[ test ] t12 PASSED: 'binary_or(856, 625)=889'
[ test ] t01 PASSED: 'binary_xor(undef, undef)=undef'
[ test ] t02 PASSED: 'binary_xor([], [])=undef'
[ test ] t03 PASSED: 'binary_xor(254, 0)=254'
[ test ] t04 PASSED: 'binary_xor(254, 1)=255'
[ test ] t05 PASSED: 'binary_xor(255, 0)=255'
[ test ] t06 PASSED: 'binary_xor(0, 255)=255'
[ test ] t07 PASSED: 'binary_xor(126, 63)=65'
[ test ] t08 PASSED: 'binary_xor(25, 10)=19'
[ test ] t09 PASSED: 'binary_xor(1024, 512)=1536'
[ test ] t10 PASSED: 'binary_xor(4253, 315)=4518'
[ test ] t11 PASSED: 'binary_xor(835, 769)=66'
[ test ] t12 PASSED: 'binary_xor(856, 625)=297'
[ test ] t01 PASSED: 'binary_not(undef)=undef'
[ test ] t02 PASSED: 'binary_not([])=undef'
[ test ] t03 PASSED: 'binary_not(254)=1'
[ test ] t04 PASSED: 'binary_not(254)=1'
[ test ] t05 PASSED: 'binary_not(255)=0'
[ test ] t06 PASSED: 'binary_not(0)=1'
[ test ] t07 PASSED: 'binary_not(126)=1'
[ test ] t08 PASSED: 'binary_not(25)=6'
[ test ] t09 PASSED: 'binary_not(1024)=1023'
[ test ] t10 PASSED: 'binary_not(4253)=3938'
[ test ] t11 PASSED: 'binary_not(835)=188'
[ test ] t12 PASSED: 'binary_not(856)=167'
[ test ] t01 PASSED: 'binary_ishl(undef)=undef'
[ test ] t02 PASSED: 'binary_ishl([])=undef'
[ test ] t03 PASSED: 'binary_ishl(254)=508'
[ test ] t04 PASSED: 'binary_ishl(254)=508'
[ test ] t05 PASSED: 'binary_ishl(255)=510'
[ test ] t06 PASSED: 'binary_ishl(0)=0'
[ test ] t07 PASSED: 'binary_ishl(126)=252'
[ test ] t08 PASSED: 'binary_ishl(25)=50'
[ test ] t09 PASSED: 'binary_ishl(1024)=2048'
[ test ] t10 PASSED: 'binary_ishl(4253)=8506'
[ test ] t11 PASSED: 'binary_ishl(835)=1670'
[ test ] t12 PASSED: 'binary_ishl(856)=1712'
[ test ] t01 PASSED: 'binary_ishr(undef)=undef'
[ test ] t02 PASSED: 'binary_ishr([])=undef'
[ test ] t03 PASSED: 'binary_ishr(254)=127'
[ test ] t04 PASSED: 'binary_ishr(254)=127'
[ test ] t05 PASSED: 'binary_ishr(255)=127'
[ test ] t06 PASSED: 'binary_ishr(0)=0'
[ test ] t07 PASSED: 'binary_ishr(126)=63'
[ test ] t08 PASSED: 'binary_ishr(25)=12'
[ test ] t09 PASSED: 'binary_ishr(1024)=512'
[ test ] t10 PASSED: 'binary_ishr(4253)=2126'
[ test ] t11 PASSED: 'binary_ishr(835)=417'
[ test ] t12 PASSED: 'binary_ishr(856)=428'