This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Add new logging.Level.parse() test


Hi,

While investigating gcc.gnu.org/PR26668 I added this new test. The GNU
Classpath code passes this, but it is useful to have this to make sure
parsing works on constant strings and new/parsed strings.

2006-03-15  Mark Wielaard  <mark@klomp.org>

    * gnu/testlet/java/util/logging/Level/parse.java (test): Add "new"
    string object to parse.

Committed,

Mark

diff -u -r1.1 parse.java
--- gnu/testlet/java/util/logging/Level/parse.java      26 Feb 2004 19:41:42 -0000      1.1
+++ gnu/testlet/java/util/logging/Level/parse.java      15 Mar 2006 13:08:55 -0000
@@ -46,6 +46,7 @@

         h.checkPoint(name);
         h.check(Level.parse(name) == TestUtils.LEVELS[i]);
+        h.check(Level.parse((" " + name + " ").trim()) == TestUtils.LEVELS[i]);       }

     /* Pass a number. */

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]