Add test of pbd/xml++.h API performance with three file sizes
[ardour.git] / libs / pbd / test / natsort_test.cc
1 #include "natsort_test.h"
2 #include "pbd/natsort.h"
3
4 CPPUNIT_TEST_SUITE_REGISTRATION (NatSortTest);
5
6 using namespace std;
7
8
9 void
10 NatSortTest::testBasic ()
11 {
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"));
20 }