| #include "PageLabelInfo_p.h" |
| class TestPageLabelInfo : public QObject |
| void TestPageLabelInfo::testToRoman() |
| toRoman(177, &str, gFalse); |
| QCOMPARE (str.getCString(), "clxxvii"); |
| void TestPageLabelInfo::testFromRoman() |
| GooString roman("clxxvii"); |
| QCOMPARE(fromRoman(roman.getCString()), 177); |
| void TestPageLabelInfo::testToLatin() |
| toLatin(54, &str, gFalse); |
| QCOMPARE(str.getCString(), "bbb"); |
| void TestPageLabelInfo::testFromLatin() |
| QCOMPARE(fromLatin(latin.getCString()), 56); |
| QTEST_MAIN(TestPageLabelInfo) |
| #include "check_pagelabelinfo.moc" |