From a81f72d8f9771ef5c572549475cd8126c89514b8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 10 Jun 2018 10:18:11 +0200 Subject: Fix unit-test compilation. --- test/dgxmlparsertest.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/dgxmlparsertest.cc b/test/dgxmlparsertest.cc index 3201d3e..c5bb984 100644 --- a/test/dgxmlparsertest.cc +++ b/test/dgxmlparsertest.cc @@ -126,11 +126,11 @@ public: CPPUNIT_ASSERT_EQUAL(std::size_t(3), dom.instrument_channels.size()); CPPUNIT_ASSERT_EQUAL(std::string("AmbLeft"), dom.instrument_channels[0].name); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_main, dom.instrument_channels[0].main); + CPPUNIT_ASSERT(main_state_t::is_main == dom.instrument_channels[0].main); CPPUNIT_ASSERT_EQUAL(std::string("AmbRight"), dom.instrument_channels[1].name); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_not_main, dom.instrument_channels[1].main); + CPPUNIT_ASSERT(main_state_t::is_not_main == dom.instrument_channels[1].main); CPPUNIT_ASSERT_EQUAL(std::string("SnareBottom"), dom.instrument_channels[2].name); - CPPUNIT_ASSERT_EQUAL(main_state_t::unset, dom.instrument_channels[2].main); + CPPUNIT_ASSERT(main_state_t::unset == dom.instrument_channels[2].main); } void drumkitParserTest() @@ -185,10 +185,10 @@ public: CPPUNIT_ASSERT_EQUAL(std::string("SnareBottom"), instr.channel_map[2].out); CPPUNIT_ASSERT_EQUAL(std::string("SnareTop"), instr.channel_map[3].out); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_main, instr.channel_map[0].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_main, instr.channel_map[1].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::unset, instr.channel_map[2].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::unset, instr.channel_map[3].main); + CPPUNIT_ASSERT(main_state_t::is_main == instr.channel_map[0].main); + CPPUNIT_ASSERT(main_state_t::is_main == instr.channel_map[1].main); + CPPUNIT_ASSERT(main_state_t::unset == instr.channel_map[2].main); + CPPUNIT_ASSERT(main_state_t::unset == instr.channel_map[3].main); } { const auto& instr = dom.instruments[1]; @@ -207,10 +207,10 @@ public: CPPUNIT_ASSERT_EQUAL(std::string("SnareBottom"), instr.channel_map[2].out); CPPUNIT_ASSERT_EQUAL(std::string("SnareTop"), instr.channel_map[3].out); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_not_main, instr.channel_map[0].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::is_not_main, instr.channel_map[1].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::unset, instr.channel_map[2].main); - CPPUNIT_ASSERT_EQUAL(main_state_t::unset, instr.channel_map[3].main); + CPPUNIT_ASSERT(main_state_t::is_not_main == instr.channel_map[0].main); + CPPUNIT_ASSERT(main_state_t::is_not_main == instr.channel_map[1].main); + CPPUNIT_ASSERT(main_state_t::unset == instr.channel_map[2].main); + CPPUNIT_ASSERT(main_state_t::unset == instr.channel_map[3].main); } CPPUNIT_ASSERT_EQUAL(std::size_t(4), dom.channels.size()); -- cgit v1.2.3