We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8565963 commit 0a81571Copy full SHA for 0a81571
tests/SIL.Machine.Tests/PunctuationAnalysis/TextSegmentTests.cs
@@ -188,8 +188,14 @@ public void Length()
188
189
textSegment = new TextSegment.Builder().SetText("new example text").Build();
190
Assert.That(textSegment.Length, Is.EqualTo("new example text".Length));
191
+
192
+ //Combining characters
193
textSegment = new TextSegment.Builder().SetText("उत्पत्ति पुस्तकले").Build();
194
Assert.That(textSegment.Length, Is.EqualTo(11));
195
196
+ //Surrogate pairs
197
+ textSegment = new TextSegment.Builder().SetText("𝜺𝜺").Build();
198
+ Assert.That(textSegment.Length, Is.EqualTo(2));
199
}
200
201
[Test]
0 commit comments