changeset 27:7b03cdfd6265

meth: more sun.dyn.util.BytecodeName test cases
author jrose
date Fri, 07 Aug 2009 17:10:42 -0700
parents f0e76a3fe55d
children 5958143570a7
files netbeans/meth/test/sun/dyn/util/BytecodeNameTest.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/netbeans/meth/test/sun/dyn/util/BytecodeNameTest.java	Thu Aug 06 18:04:37 2009 -0700
+++ b/netbeans/meth/test/sun/dyn/util/BytecodeNameTest.java	Fri Aug 07 17:10:42 2009 -0700
@@ -49,8 +49,14 @@
     }
 
     static String[][] SAMPLES = {
+        // mangled, source
         {"foo", "foo"},
         {"ba\\r", "ba\\r"},
+        {"\\=ba\\-%z", "ba\\%z"},
+        {"\\=ba\\--z", "ba\\-z"},
+        {"=\\=", "=\\="},
+        {"\\==\\|\\=", "=/\\="},
+        {"\\|\\=", "/\\="},
         {"\\=ba\\!", "ba:"},
         {"\\|", "/"},
         {"\\", "\\"},
@@ -271,7 +277,7 @@
     public void testMangler() {
         System.out.println("(mangler)");
         Tester t = new Tester();
-        t.maxlen = 5;
+        t.maxlen = 4;
         String alphabet =
             DANGEROUS_CHARS.substring(0) +
             REPLACEMENT_CHARS.substring(0, 2) +