🔧 estimated bit length was correct, add a safety margin instead

This commit is contained in:
smiley
2024-02-27 15:39:22 +01:00
parent ccc73766e9
commit df49b3ffa4
3 changed files with 14 additions and 6 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ final class QRDataTest extends TestCase{
$qrData = new QRData($options, [new Byte($str)]);
$this::assertSame(980, $qrData->estimateTotalBitLength());
$this::assertSame(976, $qrData->estimateTotalBitLength());
$this::assertSame(11, $qrData->getMinimumVersion()->getVersionNumber()); // version adjusted to 11
}
}