xref: /haiku/src/tests/kits/shared/NaturalCompareTest.h (revision 25a7b01d15612846f332751841da3579db313082)
1 /*
2  * Copyright 2012, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef NATURAL_COMPARE_TEST_H
6 #define NATURAL_COMPARE_TEST_H
7 
8 
9 #include <TestCase.h>
10 #include <TestSuite.h>
11 
12 
13 class Sample;
14 
15 
16 class NaturalCompareTest : public CppUnit::TestCase {
17 public:
18 								NaturalCompareTest();
19 	virtual						~NaturalCompareTest();
20 
21 			void				TestSome();
22 
23 	static	void				AddTests(BTestSuite& suite);
24 
25 private:
26 			void				_RunTests(const Sample* samples, int count);
27 			void				_RunTest(const char* a, const char* b,
28 									int expectedResult);
29 			int					_Normalize(int result);
30 };
31 
32 
33 #endif	// NATURAL_COMPARE_TEST_H
34