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:
Henri Yandell 2010-06-22 06:02:18 +00:00
parent 9e0f645e8e
commit 590867417d
1 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}