mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-11 20:45:05 +00:00
Fixing variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e0f645e8e
commit
590867417d
@ -25,26 +25,26 @@
|
||||
public class UnicodeEscaperTest extends TestCase {
|
||||
|
||||
public void testBelow() {
|
||||
UnicodeEscaper nee = UnicodeEscaper.below('F');
|
||||
UnicodeEscaper ue = UnicodeEscaper.below('F');
|
||||
|
||||
String input = "ADFGZ";
|
||||
String result = nee.translate(input);
|
||||
String result = ue.translate(input);
|
||||
assertEquals("Failed to escape unicode characters via the below method", "\\u0041\\u0044FGZ", result);
|
||||
}
|
||||
|
||||
public void testBetween() {
|
||||
UnicodeEscaper nee = UnicodeEscaper.between('F', 'L');
|
||||
UnicodeEscaper ue = UnicodeEscaper.between('F', 'L');
|
||||
|
||||
String input = "ADFGZ";
|
||||
String result = nee.translate(input);
|
||||
String result = ue.translate(input);
|
||||
assertEquals("Failed to escape unicode characters via the between method", "AD\\u0046\\u0047Z", result);
|
||||
}
|
||||
|
||||
public void testAbove() {
|
||||
UnicodeEscaper nee = UnicodeEscaper.above('F');
|
||||
UnicodeEscaper ue = UnicodeEscaper.above('F');
|
||||
|
||||
String input = "ADFGZ";
|
||||
String result = nee.translate(input);
|
||||
String result = ue.translate(input);
|
||||
assertEquals("Failed to escape unicode characters via the above method", "ADF\\u0047\\u005A", result);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user