projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d5f54
)
Fix some uninitialised variables in a test.
author
Carl Hetherington
<cth@carlh.net>
Wed, 5 Sep 2018 12:49:12 +0000
(13:49 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 5 Sep 2018 12:49:12 +0000
(13:49 +0100)
test/audio_analysis_test.cc
patch
|
blob
|
history
diff --git
a/test/audio_analysis_test.cc
b/test/audio_analysis_test.cc
index b461680c398bdc0ccef88c5faf31267ffbe36525..a49987125e2eed6d7b3943c1e4829140c8273d6a 100644
(file)
--- a/
test/audio_analysis_test.cc
+++ b/
test/audio_analysis_test.cc
@@
-72,6
+72,8
@@
BOOST_AUTO_TEST_CASE (audio_analysis_serialisation_test)
}
a.set_sample_peak (peak);
+ a.set_samples_per_point (100);
+ a.set_sample_rate (48000);
a.write ("build/test/audio_analysis_serialisation_test");
srand (1);
@@
-91,6
+93,9
@@
BOOST_AUTO_TEST_CASE (audio_analysis_serialisation_test)
BOOST_CHECK_CLOSE (b.sample_peak()[i].peak, peak[i].peak, 1);
BOOST_CHECK_EQUAL (b.sample_peak()[i].time.get(), peak[i].time.get());
}
+
+ BOOST_CHECK_EQUAL (a.samples_per_point(), 100);
+ BOOST_CHECK_EQUAL (a.sample_rate(), 48000);
}
static void