X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Faudio_mapping_test.cc;h=37f3d24764abed4c5cc34cc9fcdf516a56ead952;hp=8599c6af561911ad67756d015e5bd4b8f4edb219;hb=37d2bf172e9061f24c874d5416bd3c8f9719c823;hpb=1a3bf8411529e2d6c21244b970c3e5d962396cce diff --git a/test/audio_mapping_test.cc b/test/audio_mapping_test.cc index 8599c6af5..37f3d2476 100644 --- a/test/audio_mapping_test.cc +++ b/test/audio_mapping_test.cc @@ -27,7 +27,8 @@ #include #include "lib/audio_mapping.h" -#include "lib/util.h" +#include "lib/constants.h" +#include "lib/compose.hpp" using std::list; @@ -94,8 +95,12 @@ BOOST_AUTO_TEST_CASE (audio_mapping_guess_test) guess_check ("more_Lss_s.wav", 4); guess_check ("other_Rss.aiff", 5); - /* Only the filename should be taken into acccount */ + /* Only the filename should be taken into account */ guess_check ("-Lfe-/foo_L.wav", 0); + + /* Dolby-style */ + guess_check ("jake-Lrs-good.wav", 6); + guess_check ("elwood-Rrs-good.wav", 7); }