mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-07 03:53:55 +00:00
Added support for hexDecode method.
This commit is contained in:
@@ -342,4 +342,12 @@ public class StrmanTest {
|
||||
public void format_shouldThrowExceptionWhenValueDoesNotExist() throws Exception {
|
||||
assertThat(format("{1} {0}"), equalTo("{1} {0}"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void hexDecode_shouldDecodeHexCodeToString() throws Exception {
|
||||
assertThat(hexDecode("6f22"), equalTo("漢"));
|
||||
assertThat(hexDecode("0041"), equalTo("A"));
|
||||
assertThat(hexDecode("00c1"), equalTo("Á"));
|
||||
assertThat(hexDecode("00410041"), equalTo("AA"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user