Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360801 - Empty String != Null String should evaluate to true
Summary: Empty String != Null String should evaluate to true
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 07:46 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-10-13 07:46:25 EDT
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
Comment 1 Kathy Carroll CLA 2011-10-13 08:05:16 EDT
add this to the end of the code

		str = "abcde";
		if (str != strN)
			syslib.writestdout("good");
		else
			syslib.writestdout("bad");
		end
Comment 2 Jeff Douglas CLA 2011-10-18 14:27:22 EDT
fixed
Comment 3 Kathy Carroll CLA 2011-10-19 11:58:24 EDT
Verified with 201110190903 & closed