PATH:
opt
/
alt
/
tests
/
alt-php53-pecl-bitset_2.0.3-1.el8
/
tests
--TEST-- bitset_in --SKIPIF-- <?php if (!extension_loaded("bitset")) print "skip"; ?> --FILE-- <?php error_reporting(E_ALL ^ E_DEPRECATED); if( !bitset_in( bitset_empty(), 4 ) ) echo "test in an empty bitset - ok\n"; $bitset = bitset_fill( 1024 ); if( !bitset_in( $bitset, 10240 ) ) echo "test in a bitset after boundary - ok\n"; bitset_excl( $bitset, 67 ); if( !bitset_in( $bitset, 67 ) ) echo "test 0 in a bitset - ok\n"; bitset_excl( $bitset, 127 ); if( !bitset_in( $bitset, 127 ) ) echo "test 0 in a bitset aligned1 - ok\n"; bitset_excl( $bitset, 512 ); if( !bitset_in( $bitset, 512 ) ) echo "test 0 in a bitset aligned2 - ok\n"; $bitset = bitset_fill( 1024 ); bitset_incl( $bitset, 67 ); if( bitset_in( $bitset, 67 ) ) echo "test 1 in a bitset - ok\n"; bitset_incl( $bitset, 127 ); if( bitset_in( $bitset, 127 ) ) echo "test 1 in a bitset aligned1 - ok\n"; bitset_incl( $bitset, 512 ); if( bitset_in( $bitset, 521 ) ) echo "test 1 in a bitset aligned2 - ok\n"; ?> --EXPECT-- test in an empty bitset - ok test in a bitset after boundary - ok test 0 in a bitset - ok test 0 in a bitset aligned1 - ok test 0 in a bitset aligned2 - ok test 1 in a bitset - ok test 1 in a bitset aligned1 - ok test 1 in a bitset aligned2 - 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]