summaryrefslogtreecommitdiff
path: root/starmath/qa/cppunit/test_node.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/qa/cppunit/test_node.cxx')
-rw-r--r--starmath/qa/cppunit/test_node.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/starmath/qa/cppunit/test_node.cxx b/starmath/qa/cppunit/test_node.cxx
index 017089acc628..0086dfe45fb3 100644
--- a/starmath/qa/cppunit/test_node.cxx
+++ b/starmath/qa/cppunit/test_node.cxx
@@ -99,33 +99,33 @@ void NodeTest::testTdf52225()
CPPUNIT_ASSERT_EQUAL(SmNodeType::Special, pNode->GetType()); \
const SmSpecialNode *pSn = static_cast<const SmSpecialNode *>(pNode); \
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), pSn->GetText().getLength()); \
- CPPUNIT_ASSERT_EQUAL(sal_Unicode(code), pSn->GetText()[0]); \
+ CPPUNIT_ASSERT_EQUAL(code, pSn->GetText()[0]); \
CPPUNIT_ASSERT_EQUAL(OUString(text), pSn->GetToken().aText); \
CPPUNIT_ASSERT_EQUAL(bItalic, IsItalic(pSn->GetFont())); \
} while (false)
SmFormat aFormat = mxDocShell->GetFormat();
CPPUNIT_ASSERT_EQUAL(sal_Int16(2), aFormat.GetGreekCharStyle()); // default format = 2
- CHECK_GREEK_SYMBOL("%ALPHA", 0x0391, false);
- CHECK_GREEK_SYMBOL("%iALPHA", 0x0391, true);
- CHECK_GREEK_SYMBOL("%alpha", 0x03b1, true);
- CHECK_GREEK_SYMBOL("%ialpha", 0x03b1, true);
+ CHECK_GREEK_SYMBOL("%ALPHA", u'\x0391', false);
+ CHECK_GREEK_SYMBOL("%iALPHA", u'\x0391', true);
+ CHECK_GREEK_SYMBOL("%alpha", u'\x03b1', true);
+ CHECK_GREEK_SYMBOL("%ialpha", u'\x03b1', true);
// mode 1
aFormat.SetGreekCharStyle(1);
mxDocShell->SetFormat(aFormat);
- CHECK_GREEK_SYMBOL("%BETA", 0x0392, true);
- CHECK_GREEK_SYMBOL("%iBETA", 0x0392, true);
- CHECK_GREEK_SYMBOL("%beta", 0x03b2, true);
- CHECK_GREEK_SYMBOL("%ibeta", 0x03b2, true);
+ CHECK_GREEK_SYMBOL("%BETA", u'\x0392', true);
+ CHECK_GREEK_SYMBOL("%iBETA", u'\x0392', true);
+ CHECK_GREEK_SYMBOL("%beta", u'\x03b2', true);
+ CHECK_GREEK_SYMBOL("%ibeta", u'\x03b2', true);
// mode 0
aFormat.SetGreekCharStyle(0);
mxDocShell->SetFormat(aFormat);
- CHECK_GREEK_SYMBOL("%GAMMA", 0x0393, false);
- CHECK_GREEK_SYMBOL("%iGAMMA", 0x0393, true);
- CHECK_GREEK_SYMBOL("%gamma", 0x03b3, false);
- CHECK_GREEK_SYMBOL("%igamma", 0x03b3, true);
+ CHECK_GREEK_SYMBOL("%GAMMA", u'\x0393', false);
+ CHECK_GREEK_SYMBOL("%iGAMMA", u'\x0393', true);
+ CHECK_GREEK_SYMBOL("%gamma", u'\x03b3', false);
+ CHECK_GREEK_SYMBOL("%igamma", u'\x03b3', true);
#undef CHECK_GREEK_SYMBOL
}