Beispiel #1
0
        public void ShouldReverseClusters()
        {
            using (var buffer = new Buffer())
            {
                buffer.AddUtf8("12");

                buffer.ReverseClusters();

                Assert.Equal(50u, buffer.GlyphInfos[0].Codepoint);
                Assert.Equal(1u, buffer.GlyphInfos[0].Cluster);

                Assert.Equal(49u, buffer.GlyphInfos[1].Codepoint);
                Assert.Equal(0u, buffer.GlyphInfos[1].Cluster);
            }
        }