PATH:
opt
/
alt
/
tests
/
alt-php53-pecl-bitset_2.0.3-1.el8
/
tests
--TEST-- bitset_from_array --SKIPIF-- <?php if (!extension_loaded("bitset")) print "skip"; ?> --FILE-- <?php error_reporting(E_ALL ^ E_DEPRECATED); $bit_array = array(); if( bitset_to_string( bitset_from_array( $bit_array ) ) == "" ) echo "empty input - ok\n"; $bit_array = array( -11 ); if( bitset_to_string( bitset_from_array( $bit_array ) ) == "" ) echo "negative input - ok\n"; $bit_array = array( 1, 3, 8, 4, "7", 12, "13", "16", "11", -11, "-3", -4 ); if( bitset_to_string( bitset_from_array( $bit_array ) ) == "010110011001110010000000" ) echo "non-trivial input - ok\n"; $bit_array = array(2,7); if( bitset_to_string( bitset_from_array( $bit_array ) ) == "00100001" ) echo "non-trivial aligned input1 - ok\n"; $bit_array = array(2,8); if( bitset_to_string( bitset_from_array( $bit_array ) ) == "0010000010000000" ) echo "non-trivial aligned input2 - ok\n"; ?> --EXPECT-- empty input - ok negative input - ok non-trivial input - ok non-trivial aligned input1 - ok non-trivial aligned input2 - ok
[-] 009.phpt
[edit]
[-] 014.phpt
[edit]
[-] 016.phpt
[edit]
[-] 005.phpt
[edit]
[-] BitSet_getRawValue.phpt
[edit]
[-] BitSet_clear.phpt
[edit]
[-] 012.phpt
[edit]
[-] 013.phpt
[edit]
[-] 003.phpt
[edit]
[-] BitSet_orOp.phpt
[edit]
[-] 018.phpt
[edit]
[-] BitSet_fromString.phpt
[edit]
[-] BitSet_set.phpt
[edit]
[-] BitSet_construct.phpt
[edit]
[-] 007.phpt
[edit]
[-] BitSet_size.phpt
[edit]
[-] 008.phpt
[edit]
[-] BitSet_previousClearBit.phpt
[edit]
[-] 001.phpt
[edit]
[-] BitSet_cardinality.phpt
[edit]
[-] BitSet_isEmpty.phpt
[edit]
[-] 015.phpt
[edit]
[-] 002.phpt
[edit]
[-] 017.phpt
[edit]
[-] BitSet_fromRawValue.phpt
[edit]
[-] BitSet_previousSetBit.phpt
[edit]
[-] BitSet_length.phpt
[edit]
[-] 006.phpt
[edit]
[-] BitSet_toArray.phpt
[edit]
[-] BitSet_andOp.phpt
[edit]
[-] BitSet_get.phpt
[edit]
[-] 004.phpt
[edit]
[+]
..
[-] BitSet_nextSetBit.phpt
[edit]
[-] BitSet_andNotOp.phpt
[edit]
[-] BitSet_nextClearBit.phpt
[edit]
[-] BitSet_xorOp.phpt
[edit]
[-] 010.phpt
[edit]
[-] BitSet_fromArray.phpt
[edit]
[-] 011.phpt
[edit]