+ BOOST_CHECK (!x ("ap_trlr_178_uhd_bt1886_txt_e5c1_033115.86353.dpx", "ap_trlr_178_uhd_bt1886_txt_e5c1_033115.86352.dpx"));
+}
+
+/** Test a sort of a lot of paths. Mostly useful for profiling. */
+BOOST_AUTO_TEST_CASE (image_filename_sorter_test2)
+{
+ vector<boost::filesystem::path> paths;
+ for (int i = 0; i < 100000; ++i) {
+ paths.push_back(String::compose("some.filename.with.%1.number.tiff", i));
+ }
+ random_shuffle (paths.begin(), paths.end());
+ sort (paths.begin(), paths.end(), ImageFilenameSorter());
+ for (int i = 0; i < 100000; ++i) {
+ BOOST_CHECK_EQUAL(paths[i].string(), String::compose("some.filename.with.%1.number.tiff", i));
+ }