summaryrefslogtreecommitdiff
path: root/test/configparsertest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-09-19 15:12:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-09-19 15:14:24 +0200
commit62e577cee9e199692d15cf741c0e29ae28f25c52 (patch)
tree3cfe20ce434b986e58efbc9bececcda41502ed33 /test/configparsertest.cc
parent19ac4649f16621430b7d34635410fd67fd8ef49e (diff)
Make use of uUnit as a submodule (dgunit renamed).
Diffstat (limited to 'test/configparsertest.cc')
-rw-r--r--test/configparsertest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/configparsertest.cc b/test/configparsertest.cc
index 0b00d0c..69fa89a 100644
--- a/test/configparsertest.cc
+++ b/test/configparsertest.cc
@@ -24,18 +24,18 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include "dgunit.h"
+#include <uunit.h>
#include <configparser.h>
class ConfigParserTest
- : public DGUnit
+ : public uUnit
{
public:
ConfigParserTest()
{
- DGUNIT_TEST(ConfigParserTest::test);
- DGUNIT_TEST(ConfigParserTest::invalid);
+ uUNIT_TEST(ConfigParserTest::test);
+ uUNIT_TEST(ConfigParserTest::invalid);
}
void test()
@@ -50,14 +50,14 @@ public:
ConfigParser parser;
- DGUNIT_ASSERT(parser.parseString(xml));
+ uUNIT_ASSERT(parser.parseString(xml));
- DGUNIT_ASSERT_EQUAL(std::string("42"), parser.value("foo", "-"));
- DGUNIT_ASSERT_EQUAL(std::string("true"), parser.value("bar", "-"));
- DGUNIT_ASSERT_EQUAL(std::string("\"<"), parser.value("bas", "-"));
+ uUNIT_ASSERT_EQUAL(std::string("42"), parser.value("foo", "-"));
+ uUNIT_ASSERT_EQUAL(std::string("true"), parser.value("bar", "-"));
+ uUNIT_ASSERT_EQUAL(std::string("\"<"), parser.value("bas", "-"));
// Non-existing value
- DGUNIT_ASSERT_EQUAL(std::string("-"), parser.value("bas2", "-"));
+ uUNIT_ASSERT_EQUAL(std::string("-"), parser.value("bas2", "-"));
}
void invalid()
@@ -73,7 +73,7 @@ public:
ConfigParser parser;
// Epxect parser error (missing '>' in line 2)
- DGUNIT_ASSERT(!parser.parseString(xml));
+ uUNIT_ASSERT(!parser.parseString(xml));
}
};