summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-05 13:49:12 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-05 13:49:12 +0100
commit150bd0ec056cad5163818082359b56f55de02cee (patch)
treef3f18062172548b5be17b53bf6ebc000b5081f41 /test
parent78d5f548c42f561189af7ade691ee75289084bc1 (diff)
Fix some uninitialised variables in a test.
Diffstat (limited to 'test')
-rw-r--r--test/audio_analysis_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/audio_analysis_test.cc b/test/audio_analysis_test.cc
index b461680c3..a49987125 100644
--- 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