mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-24 23:58:29 +00:00
Tests/BigInteger: add test for conversion of 48 to signed hex
This commit is contained in:
parent
ea47574317
commit
48e50fe8fa
@ -397,4 +397,13 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
|
|||||||
$n = $this->getInstance(2);
|
$n = $this->getInstance(2);
|
||||||
$x->powMod($e, $n);
|
$x->powMod($e, $n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group github1264
|
||||||
|
*/
|
||||||
|
public function test48ToHex()
|
||||||
|
{
|
||||||
|
$temp = $this->getInstance(48);
|
||||||
|
$this->assertSame($temp->toHex(true), '30');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user