For PR java/6519:
* libjava.lang/emptystring.java: New. * libjava.lang/emptystring.out: New. From-SVN: r53157
This commit is contained in:
parent
8a28dbccfd
commit
de6ba6e546
@ -1,3 +1,9 @@
|
||||
2002-05-04 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
For PR java/6519:
|
||||
* libjava.lang/emptystring.java: New.
|
||||
* libjava.lang/emptystring.out: New.
|
||||
|
||||
2002-04-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* libjava.mauve/xfail: Expect failures for PR java/6391 and
|
||||
|
15
libjava/testsuite/libjava.lang/emptystring.java
Normal file
15
libjava/testsuite/libjava.lang/emptystring.java
Normal file
@ -0,0 +1,15 @@
|
||||
public class emptystring
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.out.println("null".equals(n(0) + ""));
|
||||
System.out.println("null".equals("" + n(0)));
|
||||
System.out.println("x".equals(n(1) + ""));
|
||||
System.out.println("x".equals("" + n(1)));
|
||||
}
|
||||
|
||||
static String n(int i)
|
||||
{
|
||||
if (i==0) return null; else return "x";
|
||||
}
|
||||
}
|
4
libjava/testsuite/libjava.lang/emptystring.out
Normal file
4
libjava/testsuite/libjava.lang/emptystring.out
Normal file
@ -0,0 +1,4 @@
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
Loading…
Reference in New Issue
Block a user