Hi all,

First of all, sorry for multiple postings (I have already submitted a Bug)

My Setup:
ooTest 4.2.0-snapshot6 (ooRexxUnit: 2.0.0_3.2.0 ooTest: 1.0.0_4.0.0)
Interpreter: REXX-ooRexx_4.2.0(MT)_64-bit 6.04 28 Dec 2013
OS: Kubuntu 14.04 - 64 Bit (Linux 3.13.0-32-generic)

I wrote a testcase that asserts different object types
(that are sent and received via DBus) and experienced troubles.
The first method tests wheter the doubles are the same
ooRexx admits that 1 and 1.0 are equal.

::method test_value 
double1 = 1
double2 = 1.0
self~assertEquals(double1, double2)

If the double is transported within an array, ooTest does not
assess them correctly and produce a failure.

::method test_doubleArray
double1 = 1
double2 = 1.0
arr1 = .array~of(1,double1)
arr2 = .array~of(1,double2)
self~assertEquals(arr1, arr2)

Line 1823 of OOREXXUNIT.CLS contains the routine ::routine IsCollEqual public
Line 1829 checks if one collection is a subset of another, what is not the 
case.

Do you have any ideas how to cope this problem, since following ooRexx rulez, 
the arrays should be equal?

Thank you very much!
Sebastian

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to