diff options
Diffstat (limited to 'src/tests/checks.h')
| -rw-r--r-- | src/tests/checks.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/checks.h b/src/tests/checks.h index e697814..618d0c0 100644 --- a/src/tests/checks.h +++ b/src/tests/checks.h @@ -30,10 +30,10 @@ void check( const RatingList &rating, const RatingList &base ); bool check(const TQString &txt, const TQString &a, const TQString &b) { if ( a != b ) { - cout << "ERROR: Tested " << txt.latin1() << ", expected" << endl; - cout << "'" << b.latin1() << "' (" << b.length() << " chars)" << endl; + cout << "ERROR: Tested " << txt.local8Bit() << ", expected" << endl; + cout << "'" << b.local8Bit() << "' (" << b.length() << " chars)" << endl; cout << "but got" << endl; - cout << "'" << a.latin1() << "' (" << a.length() << " chars)" << endl; + cout << "'" << a.local8Bit() << "' (" << a.length() << " chars)" << endl; exit( 1 ); } @@ -43,7 +43,7 @@ bool check(const TQString &txt, const TQString &a, const TQString &b) bool check(const TQString &txt, int a, int b) { if ( a != b ) { - cout << "ERROR: Tested " << txt.latin1() << ", expected" << endl; + cout << "ERROR: Tested " << txt.local8Bit() << ", expected" << endl; cout << "'" << b << "'" << endl; cout << "but got" << endl; cout << "'" << a << "'" << endl; @@ -56,7 +56,7 @@ bool check(const TQString &txt, int a, int b) bool check(const TQString &txt, double a, double b) { if ( fabs(a - b) > 1e-10 ) { - cout << "ERROR: Tested " << txt.latin1() << ", expected" << endl; + cout << "ERROR: Tested " << txt.local8Bit() << ", expected" << endl; cout << "'" << b << "'" << endl; cout << "but got" << endl; cout << "'" << a << "'" << endl; @@ -70,7 +70,7 @@ bool check(const TQString &txt, const TQPixmap &a, const TQPixmap &b) { if ( a.size() != b.size() ) { - cout << "ERROR: Tested " << txt.latin1() << ": photos differ" << endl; + cout << "ERROR: Tested " << txt.local8Bit() << ": photos differ" << endl; // exit( 1 ); } |
