From: Dan C. <gwc...@ez...> - 2007-11-30 18:33:01
|
For my two cents: To me, Same carries the connotation (and denotation) of identity. I mean, the comparands are not just equal, they are the same item. This implies to me that the item is being compared to itself. The equivocation, if there is any, is between Equals and Is Identical. To me, the use of the latter to name the condition of Strictly Equal seems obvious. -----Original Message----- From: oor...@li... [mailto:oor...@li...] On Behalf Of Mark Miesfeld Sent: Friday, November 30, 2007 09:52 To: ooRexx Dev List Subject: [Oorexx-devel] Fwd: [Oorexx-svn] SF.net SVN: oorexx: [1344]test/trunk/newooRexxUnit.cls David and all interested in the ooRexxUnit discussion, There is one thing I don't like about the assert methods. Maybe I'm too picky or my English is poor. To me same means alike and equals mean exactly equal. Equals is used in mathematics where a word means exactly what it is supposed to mean. Same is more common in general speech where connotation, context, and even whim, influence what same means. In the assert methods we have assertSame() and assertEquals() For me the semantics of this are reversed. assertSame() is used for strictly equals and assertEquals() is used for alike. Because of this I can never remember which to use. I'd like to see this two reversed, and I'll do the work of going through the existing 42 .testGroups and changing them - if others are in agreement. If you think my semantics are incorrect, then I'll just try to memorize them. <grin> -- Mark Miesfeld ---------- Forwarded message ---------- From: <wda...@us...> Date: Nov 30, 2007 8:30 AM Subject: [Oorexx-svn] SF.net SVN: oorexx: [1344] test/trunk/newooRexxUnit.cls To: oor...@li... Revision: 1344 http://oorexx.svn.sourceforge.net/oorexx/?rev=1344&view=rev Author: wdashley Date: 2007-11-30 08:30:00 -0800 (Fri, 30 Nov 2007) Log Message: ----------- ArtifactID: None Comment: Add a new ooRexxUnit class file starter. Added Paths: ----------- + +/*--------------------------------------------------------------------- -------*/ +/* Method: assertEquals */ +/* Description: determine if two expressions are equal */ +/*--------------------------------------------------------------------- -------*/ + +::method assertEquals +use strict arg value1, value2, msg = '' +.ooRexxUnit~assertions += 1 +comp = (value1 = value2) <************************************* +if \comp then do +/*--------------------------------------------------------------------- -------*/ +/* Method: assertSame */ +/* Description: determine if two expressions are strictly the same */ +/*--------------------------------------------------------------------- -------*/ + +::method assertSame +use strict arg value1, value2, msg = '' +.ooRexxUnit~assertions += 1 +if (value1 == value2) = .true then do ------------------------------------------------------------------------ - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Oorexx-devel mailing list Oor...@li... https://lists.sourceforge.net/lists/listinfo/oorexx-devel |