1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +00:00

🚨 Fix ByteTests.GetString

Use unicode codepoint instead of raw literal
This commit is contained in:
Oliver Booth 2020-04-18 17:43:51 +01:00
parent c7aeee1572
commit 7e0de45b64
No known key found for this signature in database
GPG Key ID: 0D7F2EF1C8D2B9C0

View File

@ -57,7 +57,7 @@ namespace X10D.Tests
public void GetString() public void GetString()
{ {
byte[] a = { 0x48, 0xc3, 0xa9, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64 }; byte[] a = { 0x48, 0xc3, 0xa9, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64 };
Assert.AreEqual("Héllo World", a.GetString()); Assert.AreEqual("H\u00e9llo World", a.GetString());
} }
/// <summary> /// <summary>