mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-04 12:58:28 +00:00
Tests/BigInteger: update bitwise_OR test
This commit is contained in:
parent
05f45f0337
commit
67f87dd1e2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user