Fill test disk partitions with random noise to expose more bugs.
[dcpomatic.git] / test / audio_mapping_test.cc
index 1e56df38777460703eae238ff6e478f91db43ecf..8599c6af561911ad67756d015e5bd4b8f4edb219 100644 (file)
@@ -71,7 +71,7 @@ guess_check (boost::filesystem::path filename, int output_channel)
        AudioMapping m (1, 8);
        m.make_default (0, filename);
        for (int i = 0; i < 8; ++i) {
-               BOOST_TEST_INFO (filename);
+               BOOST_TEST_INFO (String::compose("%1 channel %2", filename, i));
                BOOST_CHECK_CLOSE (m.get(0, i), i == output_channel ? 1 : 0, 0.01);
        }
 }
@@ -93,6 +93,9 @@ BOOST_AUTO_TEST_CASE (audio_mapping_guess_test)
        guess_check ("ptish_Rsr_abc.wav", 7);
        guess_check ("more_Lss_s.wav", 4);
        guess_check ("other_Rss.aiff", 5);
+
+       /* Only the filename should be taken into acccount */
+       guess_check ("-Lfe-/foo_L.wav", 0);
 }