Skip to content

Commit 3a69808

Browse files
committed
ags4-auto-test: enabled utf-8 char literal test
1 parent b4753b5 commit 3a69808

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ags4/auto-test/test-string.asc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test String Module Script
22
int GetTestStringCount()
33
{
4-
return 30 + 60 /* string split */;
4+
return 31 + 60 /* string split */;
55
}
66

77
void TestString()
@@ -13,11 +13,10 @@ void TestString()
1313
mytext = mytext.Append("World");
1414
tap.is(mytext, "HelloWorld", "String.Append test");
1515

16-
// disabled because single utf-8 char errors the new compiler
17-
// // UTF-8 specific test
18-
// String utfText = "Hell";
19-
// utfText = utfText.AppendChar('ä'); // Append a UTF-8 character
20-
// tap.is(utfText, "Hellä", "String.AppendChar UTF-8 test");
16+
// UTF-8 specific test
17+
String utfText = "Hell";
18+
utfText = utfText.AppendChar('ä'); // Append a UTF-8 character
19+
tap.is(utfText, "Hellä", "String.AppendChar UTF-8 test");
2120
}
2221

2322
// String.AppendChar

0 commit comments

Comments
 (0)