PATH:
opt
/
alt
/
tests
/
alt-php53-pecl-bitset_2.0.3-1.el8
/
tests
--TEST-- bitset_intersection --SKIPIF-- <?php if (!extension_loaded("bitset")) print "skip"; ?> --FILE-- <?php error_reporting(E_ALL ^ E_DEPRECATED); if( bitset_to_string( bitset_intersection( bitset_empty(), bitset_empty() ) ) == "" ) echo "empty input - ok\n"; if( bitset_equal( bitset_intersection( bitset_from_string( "000100110010110010101110011001110111" ), bitset_from_string( "001100000110101100110011100101100101" ) ), bitset_from_string ( "000100000010100000100010000001100101" ) ) ) echo "same length - ok\n"; if( bitset_equal( bitset_intersection( bitset_from_string( "0001001100101100101011100110011101110011010110000011101001" ), bitset_from_string( "001100000110101100110011100101100101" ) ), bitset_from_string ( "000100000010100000100010000001100101" ) ) ) echo "first is greater - ok\n"; if( bitset_equal( bitset_intersection( bitset_from_string( "000100110010110010101110011001110111" ), bitset_from_string( "001100000110101100110011100101100101000110101110010101011011001" ) ), bitset_from_string ( "000100000010100000100010000001100101" ) ) ) echo "second is greater - ok\n"; ?> --EXPECT-- empty input - ok same length - ok first is greater - ok second is greater - 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]