diff --git a/src/test/foptiattr-test.cpp b/src/test/foptiattr-test.cpp index c810e80a..c3468da6 100644 --- a/src/test/foptiattr-test.cpp +++ b/src/test/foptiattr-test.cpp @@ -831,7 +831,8 @@ void FOptiAttrTest::vt100Test() CPPUNIT_ASSERT_CSTRING ( oa.changeAttribute(from, to) , C_STR(CSI "0m\017$<2>") ); CPPUNIT_ASSERT ( *from != *to ); - CPPUNIT_ASSERT ( from->code = ' ' ); + CPPUNIT_ASSERT ( to->code == ' ' ); + from->code = ' '; CPPUNIT_ASSERT ( oa.changeAttribute(from, to) == 0 ); // Invisible off (with default colors)