Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-6
-
None
Description
public void testAsBoolean() {
assertAsBoolean(false, "");
GString emptyGString = new GString(new Object[]
public String[] getStrings() {
return new String[] { "" }
;
}
};
assertAsBoolean(false, emptyGString);
GString nonEmptyGString = new GString(new Object[]
public String[] getStrings() {
return new String[] { "x" }
;
}
};
assertAsBoolean(true, nonEmptyGString);
assertAsBoolean(true, new Character((char) 1));
assertAsBoolean(false, new Character((char) 0));
}