From 9978c7e341b4df805b8bcb27a109f6eda7c3db4f Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Thu, 5 Apr 2018 12:47:32 +0200 Subject: [PATCH] Unit tests update --- src/test/foptiattr-test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)