1 #include "natsort_test.h"
2 #include "pbd/natsort.h"
4 CPPUNIT_TEST_SUITE_REGISTRATION (NatSortTest);
10 NatSortTest::testBasic ()
12 CPPUNIT_ASSERT (!PBD::naturally_less ("a32", "a4"));
13 CPPUNIT_ASSERT (!PBD::naturally_less ("a32", "a04"));
14 CPPUNIT_ASSERT ( PBD::naturally_less ("a32", "a40"));
15 CPPUNIT_ASSERT ( PBD::naturally_less ("a32a", "a32b"));
16 CPPUNIT_ASSERT (!PBD::naturally_less ("a32b", "a32a"));
17 CPPUNIT_ASSERT (!PBD::naturally_less ("abcd", "abc"));
18 CPPUNIT_ASSERT ( PBD::naturally_less ("abc", "abcd"));
19 CPPUNIT_ASSERT (!PBD::naturally_less ("abc", "abc"));