Ejemplo n.º 1
0
        public void TestUnicodeSurrogate()
        {
            const string expected = "foo\ud83d\udc3c"; // "foo🐼"
            PyObject     actual   = new PyString(expected);

            // python treats "foo🐼" as 4 characters, dotnet as 5
            Assert.AreEqual(4, actual.Length());
            Assert.AreEqual(expected, actual.ToString());
        }