X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-bitset_3.2.0-1.el8/tests
opt
/
alt
/
tests
/
alt-php81-pecl-bitset_3.2.0-1.el8
/
tests
/
ðŸ“
..
📄
BitSet_andNotOp.phpt
(425 B)
📄
BitSet_andOp.phpt
(425 B)
📄
BitSet_cardinality.phpt
(448 B)
📄
BitSet_clear.phpt
(954 B)
📄
BitSet_construct.phpt
(706 B)
📄
BitSet_fromArray.phpt
(710 B)
📄
BitSet_fromInteger.phpt
(805 B)
📄
BitSet_fromRawValue.phpt
(483 B)
📄
BitSet_fromString.phpt
(649 B)
📄
BitSet_get.phpt
(593 B)
📄
BitSet_getRawValue.phpt
(444 B)
📄
BitSet_intersects.phpt
(619 B)
📄
BitSet_isEmpty.phpt
(412 B)
📄
BitSet_length.phpt
(494 B)
📄
BitSet_nextClearBit.phpt
(638 B)
📄
BitSet_nextSetBit.phpt
(631 B)
📄
BitSet_orOp.phpt
(421 B)
📄
BitSet_previousClearBit.phpt
(868 B)
📄
BitSet_previousSetBit.phpt
(871 B)
📄
BitSet_set.phpt
(805 B)
📄
BitSet_size.phpt
(406 B)
📄
BitSet_toArray.phpt
(480 B)
📄
BitSet_xorOp.phpt
(412 B)
📄
bug63315.phpt
(413 B)
Editing: BitSet_clear.phpt
--TEST-- BitSet BitSet::clear() - Test clearing bits individually, as sets and as a whole --SKIPIF-- <?php if (!extension_loaded('bitset')) die('skipping missing extension'); ?> --FILE-- <?php $b = new BitSet(); $b->set(50); $b->set(63); var_dump($b->get(50)); $b->clear(50); var_dump($b->get(50)); $b->clear(); var_dump($b->__toString()); $b->set(5); $b->set(10); $b->set(20); $b->clear(5, 11); var_dump($b->__toString()); $b->set(0, 1); $b->clear(0); var_dump($b->__toString()); try { var_dump($b->clear(64)); } catch (Exception $e) { echo get_class($e).': '.$e->getMessage()."\n"; } ?> --EXPECT-- bool(true) bool(false) string(64) "0000000000000000000000000000000000000000000000000000000000000000" string(64) "0000000000000000000010000000000000000000000000000000000000000000" string(64) "0100000000000000000010000000000000000000000000000000000000000000" OutOfRangeException: The requested start index is greater than the total number of bits
Upload File
Create Folder