void RomanCreatorTest::convertTest(void) { RomanCreator roman_creator(&RomanTable[0][0][0], ROMAN_CONVERT_SIZE_MAX); // a -> あ Uint16 converted[16] = { 0x3042, 0x0 }; const char* input_example = roman_creator.convert(converted); CPPUNIT_ASSERT_EQUAL('a', input_example[0]); CPPUNIT_ASSERT_EQUAL('\0', input_example[1]); // aka -> あか converted[0] = 0x3042; converted[1] = 0x304b; converted[2] = 0x0; input_example = roman_creator.convert(converted); CPPUNIT_ASSERT_EQUAL('a', input_example[0]); CPPUNIT_ASSERT_EQUAL('k', input_example[1]); CPPUNIT_ASSERT_EQUAL('a', input_example[2]); CPPUNIT_ASSERT_EQUAL('\0', input_example[3]); }