summaryrefslogtreecommitdiff
path: root/test/dgxmlparsertest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-10 10:18:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-12 11:11:41 +0200
commita81f72d8f9771ef5c572549475cd8126c89514b8 (patch)
tree4dfc6fcb11cfbdd934292356c5b15bcf22ad9399 /test/dgxmlparsertest.cc
parentffc6c801a23fe90980adf1997391ba32c02b6182 (diff)
Fix unit-test compilation.
Diffstat (limited to 'test/dgxmlparsertest.cc')
-rw-r--r--test/dgxmlparsertest.cc22
1 files 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());