Tests/BigInteger: update bitwise_OR test

This commit is contained in:
terrafrost 2024-08-11 10:47:47 -05:00
parent 05f45f0337
commit 67f87dd1e2

View File

@ -221,6 +221,12 @@ abstract class TestCase extends PhpseclibTestCase
$this->assertSame($z->toHex(), $x->bitwise_OR($y)->toHex());
$x = $this->getInstance('AFAFAFAFAFAFAFAFAFAFAFAF', 16);
$y = $this->getInstance('133713371337133713371337', 16);
$z = $this->getInstance('BFBFBFBFBFBFBFBFBFBFBFBF', 16);
$this->assertSame($z->toHex(), $x->bitwise_OR($y)->toHex());
$x = -0xFFFF;
$y = 2;
$z = $x ^ $y;