@@ -17,24 +17,27 @@ #include "config.h" #import "TestsAppDelegate.h" -static OFString *module = @"OFLocale"; - @implementation TestsAppDelegate (OFLocaleTests) - (void)localeTests { void *pool = objc_autoreleasePoolPush(); - PRINT(GREEN, @"Language: %@", [OFLocale language]); - - PRINT(GREEN, @"Territory: %@", [OFLocale territory]); - - PRINT(GREEN, @"Encoding: %@", - of_string_name_of_encoding([OFLocale encoding])); - - PRINT(GREEN, @"Decimal point: %@", [OFLocale decimalPoint]); + of_stdout.foregroundColor = [OFColor lime]; + + [of_stdout writeFormat: @"[OFLocale]: Language: %@\n", + [OFLocale language]]; + + [of_stdout writeFormat: @"[OFLocale]: Territory: %@\n", + [OFLocale territory]]; + + [of_stdout writeFormat: @"[OFLocale]: Encoding: %@\n", + of_string_name_of_encoding([OFLocale encoding])]; + + [of_stdout writeFormat: @"[OFLocale]: Decimal point: %@\n", + [OFLocale decimalPoint]]; objc_autoreleasePoolPop(pool); } @end