Skip to content

Commit

Permalink
(#1489) Add test for unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Nov 5, 2020
1 parent ac207da commit 293b2ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/org/cactoos/scalar/LengthOfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ public void lengthOfEmptyText() {
).affirm();
}

@Test
public void lengthOfUnicode() {
new Assertion<>(
"Must calculate length of empty string",
new LengthOf(new TextOf("привет")).intValue(),
new IsEqual<>(12)
).affirm();
}

@Test
public void lengthOfText() {
final Number num = new LengthOf(new TextOf("abcd"));
Expand Down

0 comments on commit 293b2ce

Please sign in to comment.