|
Line 0
Link Here
|
|
|
1 |
--- regress/test/net/sourceforge/pmd/util/StringUtilTest.java 2013-03-22 18:04:13.000000000 +0200 |
| 2 |
+++ regress/test/net/sourceforge/pmd/util/StringUtilTest.java 2013-03-22 18:04:30.000000000 +0200 |
| 3 |
@@ -33,16 +33,16 @@ |
| 4 |
public void testUTF8NotSupported() { |
| 5 |
System.setProperty("net.sourceforge.pmd.supportUTF8","no"); |
| 6 |
StringBuffer sb = new StringBuffer(); |
| 7 |
- String test = "é"; |
| 8 |
+ String test = "-"; // was 'e' with "'" |
| 9 |
StringUtil.appendXmlEscaped(sb, test); |
| 10 |
assertEquals("é", sb.toString()); |
| 11 |
} |
| 12 |
public void testUTF8Supported() { |
| 13 |
System.setProperty("net.sourceforge.pmd.supportUTF8","yes"); |
| 14 |
StringBuffer sb = new StringBuffer(); |
| 15 |
- String test = "é"; |
| 16 |
+ String test = "-"; |
| 17 |
StringUtil.appendXmlEscaped(sb, test); |
| 18 |
- assertEquals("é", sb.toString()); |
| 19 |
+ assertEquals("-", sb.toString()); |
| 20 |
System.setProperty("net.sourceforge.pmd.supportUTF8","no"); |
| 21 |
} |
| 22 |
*/ |