mirror of https://github.com/status-im/qzxing.git
Updated old tests with the new testing utilities
This commit is contained in:
parent
09bce488b4
commit
18d1cc106a
|
@ -165,7 +165,7 @@ void BitArrayTests::testToString()
|
|||
{
|
||||
BitArray v;
|
||||
v.appendBits(0xdead, 16); // 1101 1110 1010 1101
|
||||
assertEquals(std::string(" XX.XXXX. X.X.XX.X"), v.toString());
|
||||
assertEquals(" XX.XXXX. X.X.XX.X", v.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -267,14 +267,14 @@ void MatrixUtilTests::testMakeVersionInfoBits() {
|
|||
// From Appendix D in JISX0510:2004 (p 68)
|
||||
BitArray bits;
|
||||
MatrixUtil::makeVersionInfoBits(*Version::getVersionForNumber(7), bits);
|
||||
assertEquals(std::string(" ...XXXXX ..X..X.X .."), bits.toString());
|
||||
assertEquals(" ...XXXXX ..X..X.X ..", bits.toString());
|
||||
}
|
||||
|
||||
void MatrixUtilTests::testMakeTypeInfoInfoBits() {
|
||||
// From Appendix C in JISX0510:2004 (p 65)
|
||||
BitArray bits;
|
||||
MatrixUtil::makeTypeInfoBits(ErrorCorrectionLevel::M, 5, bits);
|
||||
assertEquals(std::string(" X......X X..XXX."), bits.toString());
|
||||
assertEquals(" X......X X..XXX.", bits.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue