diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-17 00:41:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-17 00:41:04 +0100 |
| commit | 12e20e180062dbc338e775bd1f5ec7a2af91df7f (patch) | |
| tree | 7c6f3bd3b4af92967764c86b80c3a8b052db55bf /test | |
| parent | b0a4408ea45787a71592c63526ea5a8f2fe3f1fe (diff) | |
Improve image filename sorter.
Diffstat (limited to 'test')
| -rw-r--r-- | test/image_filename_sorter_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/image_filename_sorter_test.cc b/test/image_filename_sorter_test.cc index 830065f77..4bdd16f55 100644 --- a/test/image_filename_sorter_test.cc +++ b/test/image_filename_sorter_test.cc @@ -31,6 +31,7 @@ BOOST_AUTO_TEST_CASE (image_filename_sorter_test) BOOST_CHECK (x ("1", "999")); BOOST_CHECK (x ("00057.tif", "00166.tif")); BOOST_CHECK (x ("/my/numeric999/path/00057.tif", "/my/numeric999/path/00166.tif")); + BOOST_CHECK (x ("1_01.tif", "1_02.tif")); BOOST_CHECK (!x ("abc0000000002", "abc0000000001")); BOOST_CHECK (!x ("2", "1")); @@ -38,4 +39,5 @@ BOOST_AUTO_TEST_CASE (image_filename_sorter_test) BOOST_CHECK (!x ("2", "0001")); BOOST_CHECK (!x ("999", "1")); BOOST_CHECK (!x ("/my/numeric999/path/00166.tif", "/my/numeric999/path/00057.tif")); + BOOST_CHECK (!x ("1_02.tif", "1_01.tif")); } |
