ObjFW  Diff

Differences From Artifact [bc413d1703]:

To Artifact [bba7d2e3cd]:


15
16
17
18
19
20
21
22
23
24
25
26
27
28



29

30

31

32
33
34


35

36

37
38
39
40
15
16
17
18
19
20
21


22
23
24
25
26
27
28
29

30
31
32

33
34


35
36
37
38

39
40
41
42
43







-
-





+
+
+
-
+

+
-
+

-
-
+
+

+
-
+




 * file.
 */

#include "config.h"

#import "TestsAppDelegate.h"

static OFString *module = @"OFLocale";

@implementation TestsAppDelegate (OFLocaleTests)
- (void)localeTests
{
	void *pool = objc_autoreleasePoolPush();

	of_stdout.foregroundColor = [OFColor lime];

	[of_stdout writeFormat: @"[OFLocale]: Language: %@\n",
	PRINT(GREEN, @"Language: %@", [OFLocale language]);
	    [OFLocale language]];

	[of_stdout writeFormat: @"[OFLocale]: Territory: %@\n",
	PRINT(GREEN, @"Territory: %@", [OFLocale territory]);
	    [OFLocale territory]];

	PRINT(GREEN, @"Encoding: %@",
	    of_string_name_of_encoding([OFLocale encoding]));
	[of_stdout writeFormat: @"[OFLocale]: Encoding: %@\n",
	    of_string_name_of_encoding([OFLocale encoding])];

	[of_stdout writeFormat: @"[OFLocale]: Decimal point: %@\n",
	PRINT(GREEN, @"Decimal point: %@", [OFLocale decimalPoint]);
	    [OFLocale decimalPoint]];

	objc_autoreleasePoolPop(pool);
}
@end