summaryrefslogtreecommitdiff
path: root/test/domloadertest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-12 14:50:24 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-04-12 14:50:24 +0200
commit20c5726e9442ebaf3711043cc0f317a600fb9c75 (patch)
tree43bf21f5ebb987bb2c0af957a959458bf99c42d1 /test/domloadertest.cc
parente61e6df43ab0b9014f524abf76ea033086b7dcdf (diff)
Make sure that drumkit::clear clear all metadata.
Diffstat (limited to 'test/domloadertest.cc')
-rw-r--r--test/domloadertest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/domloadertest.cc b/test/domloadertest.cc
index 2cd6aa8..093bcde 100644
--- a/test/domloadertest.cc
+++ b/test/domloadertest.cc
@@ -153,9 +153,9 @@ public:
DGUNIT_ASSERT_EQUAL(std::string("SnareTop"), drumkit.channels[2].name);
DGUNIT_ASSERT_EQUAL(std::string("SnareBottom"), drumkit.channels[3].name);
- DGUNIT_ASSERT_EQUAL(std::size_t(48000), drumkit._samplerate);
+ DGUNIT_ASSERT_EQUAL(48000.0f, drumkit.metadata._samplerate);
- DGUNIT_ASSERT(VersionStr("2.0.0") == drumkit._version);
+ DGUNIT_ASSERT(VersionStr("2.0.0") == drumkit.metadata._version);
//
// Instrument1 'Snare1':