1/*
2 * Copyright 2014 Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef UNICODE_CHAR_TEST_H
6#define UNICODE_CHAR_TEST_H
7
8
9#include <TestCase.h>
10#include <TestSuite.h>
11
12
13class UnicodeCharTest: public BTestCase {
14public:
15					UnicodeCharTest();
16	virtual			~UnicodeCharTest();
17
18			void	TestAscii();
19			void	TestISO8859();
20			void	TestUTF8();
21
22	static	void	AddTests(BTestSuite& suite);
23
24private:
25	struct Result {
26		const char* value;
27		bool isAlpha;
28		bool isAlNum;
29		bool isLower;
30		bool isUpper;
31		bool isDefined;
32		int type;
33		int32 toUpper;
34		int32 toLower;
35	};
36
37			void	_ToString(uint32 c, char* text);
38			void	_TestChar(uint32 c, Result result);
39};
40
41#endif
42