summaryrefslogtreecommitdiff
path: root/starmath/qa/cppunit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:55:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:56 +0200
commit740cf511036cdf881a521a79218d3dcc29422db3 (patch)
tree9eaa8ec35c47e144dc5dac59ef438bd46a0100e6 /starmath/qa/cppunit
parentc22ecc18674a8f9f41afa9f6b1364989b18147d7 (diff)
loplugin:salunicodeliteral: starmath
Change-Id: Ic02e71ccb2d5fe2e3505853c6e164f17e26361b2
Diffstat (limited to 'starmath/qa/cppunit')
-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
}