Updated old tests with the new testing utilities

This commit is contained in:
favoritas37 2016-08-01 18:34:12 +03:00
parent 09bce488b4
commit 18d1cc106a
2 changed files with 3 additions and 3 deletions

View File

@ -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());
}
}

View File

@ -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());
}
}