| Summary: | Empty String != Null String should evaluate to true | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | jeffdouglas, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
add this to the end of the code
str = "abcde";
if (str != strN)
syslib.writestdout("good");
else
syslib.writestdout("bad");
end
fixed Verified with 201110190903 & closed |
I believe all of these tests should writeout good. Works as desired in JavaScript. str string; strN string?; if (str == strN) syslib.writestdout("bad"); else syslib.writestdout("good"); end if (str != strN) syslib.writestdout("good"); else syslib.writestdout("bad"); end if ("" == strN) syslib.writestdout("bad"); else syslib.writestdout("good"); end if ("" != strN) syslib.writestdout("good"); else syslib.writestdout("bad"); end