PATH:
opt
/
alt
/
tests
/
alt-php51-pecl-bitset_1.0.1-1.el8
/
tests
--TEST-- bitset_incl --SKIPIF-- <?php if (!extension_loaded("bitset")) print "skip"; ?> --FILE-- <?php $bitset = bitset_empty(); bitset_incl( $bitset, 3 ); if( bitset_to_string( $bitset ) == "00010000" ) echo "include to empty bitset - ok\n"; bitset_incl( $bitset, 1 ); if( bitset_to_string( $bitset ) == "01010000" ) echo "include to existing part of a bitset - ok\n"; bitset_incl( $bitset, 35 ); if( bitset_to_string( $bitset ) == "0101000000000000000000000000000000010000" ) echo "include after boundary - ok\n"; bitset_incl( $bitset, 47 ); if( bitset_equal( $bitset, bitset_from_string( "010100000000000000000000000000000001000000000001") ) ) echo "include after boundary aligned 1 - ok\n"; bitset_incl( $bitset, 48 ); if( bitset_equal( $bitset, bitset_from_string( "0101000000000000000000000000000000010000000000011") ) ) echo "include after boundary aligned 2 - ok\n"; ?> --EXPECT-- include to empty bitset - ok include to existing part of a bitset - ok include after boundary - ok include after boundary aligned 1 - ok include after boundary aligned 2 - ok
[-] 009.phpt
[edit]
[-] 014.phpt
[edit]
[-] 016.phpt
[edit]
[-] 005.phpt
[edit]
[-] 012.phpt
[edit]
[-] 013.phpt
[edit]
[-] 003.phpt
[edit]
[-] 018.phpt
[edit]
[-] 007.phpt
[edit]
[-] 008.phpt
[edit]
[-] 001.phpt
[edit]
[-] 015.phpt
[edit]
[-] 002.phpt
[edit]
[-] 017.phpt
[edit]
[-] 006.phpt
[edit]
[-] 004.phpt
[edit]
[+]
..
[-] 010.phpt
[edit]
[-] 011.phpt
[edit]