projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support Dolby-style WAV back surround names when guessing mappings (#2427).
[dcpomatic.git]
/
test
/
audio_mapping_test.cc
diff --git
a/test/audio_mapping_test.cc
b/test/audio_mapping_test.cc
index ca58c03ca0a8a965ef64ee95476b9589a14150d2..37f3d24764abed4c5cc34cc9fcdf516a56ead952 100644
(file)
--- a/
test/audio_mapping_test.cc
+++ b/
test/audio_mapping_test.cc
@@
-27,7
+27,8
@@
#include <boost/test/unit_test.hpp>
#include "lib/audio_mapping.h"
#include <boost/test/unit_test.hpp>
#include "lib/audio_mapping.h"
-#include "lib/util.h"
+#include "lib/constants.h"
+#include "lib/compose.hpp"
using std::list;
using std::list;
@@
-96,6
+97,10
@@
BOOST_AUTO_TEST_CASE (audio_mapping_guess_test)
/* Only the filename should be taken into account */
guess_check ("-Lfe-/foo_L.wav", 0);
/* 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);
}
}