mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-11 07:33:58 +00:00
Fixed #2. Added support for htmlDecode function
This commit is contained in:
@@ -646,4 +646,12 @@ public class StrmanTest {
|
||||
assertThat(truncate("A Javascript string manipulation library.", 15, "..."), equalTo("A Javascript..."));
|
||||
assertThat(truncate("A Javascript string manipulation library.", 14, "..."), equalTo("A Javascrip..."));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void htmlDecode_shouldDecodeToHtml() throws Exception {
|
||||
assertThat(htmlDecode("á"), equalTo("\u00E1"));
|
||||
assertThat(htmlDecode("Ш"), equalTo("Ш"));
|
||||
assertThat(htmlDecode("Ж"), equalTo("Ж"));
|
||||
assertThat(htmlDecode("┐"), equalTo("┐"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user