PATH:
opt
/
alt
/
tests
/
alt-php81-pecl-bitset_3.2.0-1.el8
/
tests
--TEST-- BitSet BitSet::nextSetBit() - Verifies the next set bit is valid based on the provided index --SKIPIF-- <?php if (!extension_loaded('bitset')) die('skipping missing extension'); ?> --FILE-- <?php $b = new BitSet(); // 64 bits is fine $b->set(20); $b->set(18); var_dump($b->nextSetBit(0)); var_dump($b->nextSetBit(20)); var_dump($b->nextSetBit(18)); var_dump($b->nextSetBit(5)); try { var_dump($b->nextSetBit(63)); } catch (Exception $e) { echo get_class($e).': '.$e->getMessage()."\n"; } ?> --EXPECT-- int(18) bool(false) int(20) int(18) InvalidArgumentException: There are no bits larger than the index provided
[-] BitSet_fromInteger.phpt
[edit]
[-] BitSet_andOp.phpt
[edit]
[-] BitSet_intersects.phpt
[edit]
[-] BitSet_set.phpt
[edit]
[-] BitSet_length.phpt
[edit]
[-] BitSet_previousSetBit.phpt
[edit]
[-] BitSet_xorOp.phpt
[edit]
[-] BitSet_orOp.phpt
[edit]
[-] bug63315.phpt
[edit]
[-] BitSet_size.phpt
[edit]
[-] BitSet_nextSetBit.phpt
[edit]
[-] BitSet_get.phpt
[edit]
[-] BitSet_construct.phpt
[edit]
[-] BitSet_fromString.phpt
[edit]
[-] BitSet_toArray.phpt
[edit]
[-] BitSet_nextClearBit.phpt
[edit]
[+]
..
[-] BitSet_previousClearBit.phpt
[edit]
[-] BitSet_getRawValue.phpt
[edit]
[-] BitSet_andNotOp.phpt
[edit]
[-] BitSet_clear.phpt
[edit]
[-] BitSet_fromRawValue.phpt
[edit]
[-] BitSet_isEmpty.phpt
[edit]
[-] BitSet_fromArray.phpt
[edit]
[-] BitSet_cardinality.phpt
[edit]