Commit 236cd7f5 authored by Aleksey Konovalov's avatar Aleksey Konovalov

improved wchar tests

parent f3b6b315
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace testsuite { namespace testsuite {
static const std::wstring str1 = L"some string with unicode \u263a symbol"; static const std::wstring str1 = L"some string with unicode \u263A, \U0001F4A9 symbols";
static const std::wstring str2 = L"another string with unicode \u263b symbol"; static const std::wstring str2 = L"another string with unicode \u263B, \U0001F4A8 symbols";
WcharTestRec WcharTestHelpers::get_record() WcharTestRec WcharTestHelpers::get_record()
{ {
......
...@@ -4,8 +4,8 @@ import junit.framework.TestCase; ...@@ -4,8 +4,8 @@ import junit.framework.TestCase;
public class WcharTest extends TestCase { public class WcharTest extends TestCase {
private static final String STR1 = "some string with unicode \u263a symbol"; private static final String STR1 = "some string with unicode \u263A, \uD83D\uDCA9 symbols";
private static final String STR2 = "another string with unicode \u263b symbol"; private static final String STR2 = "another string with unicode \u263B, \uD83D\uDCA8 symbols";
public void test() { public void test() {
assertEquals(WcharTestHelpers.getRecord().getS(), STR1); assertEquals(WcharTestHelpers.getRecord().getS(), STR1);
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
- (void)test - (void)test
{ {
NSString *str1 = @"some string with unicode \u263a symbol"; NSString *str1 = @"some string with unicode \u263A, \U0001F4A9 symbols";
NSString *str2 = @"another string with unicode \u263b symbol"; NSString *str2 = @"another string with unicode \u263B, \U0001F4A8 symbols";
XCTAssertEqualObjects([[DBWcharTestHelpers getRecord] s], str1); XCTAssertEqualObjects([[DBWcharTestHelpers getRecord] s], str1);
XCTAssertEqualObjects([DBWcharTestHelpers getString], str2); XCTAssertEqualObjects([DBWcharTestHelpers getString], str2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment