mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 03:58:28 +00:00
added gexp() test
This commit is contained in:
@@ -24,6 +24,12 @@ class PolynomialTest extends \PHPUnit_Framework_TestCase{
|
||||
$this->polynomial = new Polynomial;
|
||||
}
|
||||
|
||||
public function testGexp(){
|
||||
$this->assertEquals(142, $this->polynomial->gexp( -1));
|
||||
$this->assertEquals(133, $this->polynomial->gexp(128));
|
||||
$this->assertEquals(2, $this->polynomial->gexp(256));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \chillerlan\QRCode\QRCodeException
|
||||
* @expectedExceptionMessage log(0)
|
||||
|
||||
Reference in New Issue
Block a user