diff --git a/test/foptiattr-test.cpp b/test/foptiattr-test.cpp index 36ff9613..c4ecdb11 100644 --- a/test/foptiattr-test.cpp +++ b/test/foptiattr-test.cpp @@ -1085,7 +1085,7 @@ void FOptiAttrTest::vt100Test() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , CSI "0m\017$<2>" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors) @@ -2028,7 +2028,7 @@ void FOptiAttrTest::rxvtTest() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , CSI "0m\017" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors) @@ -2498,7 +2498,7 @@ void FOptiAttrTest::linuxTest() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , CSI "0m\017" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors) @@ -2979,7 +2979,7 @@ void FOptiAttrTest::puttyTest() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , CSI "0m\017" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors) @@ -3450,7 +3450,7 @@ void FOptiAttrTest::teratermTest() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , CSI "0m\017$<2>" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors) @@ -3905,7 +3905,7 @@ void FOptiAttrTest::ibmColorTest() CPPUNIT_ASSERT ( from != to ); CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to), "" ); CPPUNIT_ASSERT ( from == to ); - CPPUNIT_ASSERT ( to.encoded_char == ' ' ); + CPPUNIT_ASSERT ( to.encoded_char[0] == ' ' ); CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors)