Skip to content

Commit 4847b01

Browse files
committed
Fixed a test.
1 parent 7aaefa3 commit 4847b01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testbase64.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define BASE64_FILE_BINARY "../test/data/base64/base64_binary.jpg"
3838
#define BASE64_FILE_UTILS "../test/data/base64/base64_utils.dat"
3939
#define BASE64_FILE_TEXT ":/base64/base64_text.dat"
40-
#define BASE64_FILE_BASE64 "../test/data/base64/base64_base64.dat"
40+
#define BASE64_FILE_BASE64 "../test/data/base64/base64_base64.txt"
4141

4242
TestBase64::TestBase64()
4343
{
@@ -47,7 +47,7 @@ TestBase64::TestBase64()
4747

4848
bool TestBase64::testFast()
4949
{
50-
return testUnitUtilsColumnLimit();
50+
return test_base64_utils_loadb64();
5151
}
5252

5353
bool TestBase64::test_base64()
@@ -517,7 +517,7 @@ bool TestBase64::test_base64_utils_loadb64()
517517
if( (NULL==text) || (NULL ==base) ) {
518518
return error("Null edit boxes");
519519
}
520-
QString encoded = base->toPlainText();
520+
QString encoded = base->toPlainText().trimmed();
521521
QString expected = "YWJjZA==" ;
522522
if(encoded!=expected) {
523523
return error(QString("Load differs Decoded (%1):'%2'\nExpected (%3):%4").arg(encoded.length()).arg(encoded).arg(expected.length()).arg(expected));

0 commit comments

Comments
 (0)