Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004262 [Squeak] Any minor always 07-15-06 09:57 07-15-06 12:05
Reporter Krivanek View Status public  
Assigned To KenCausey
Priority normal Resolution duplicate  
Status closed   Product Version
Summary 0004262: SUnit test ComplexTest>>testEquality fails for an collection
Description (1 i) = #(1 2 3) returns #(false false false) and so assertation fails
but
#(1 2 3) = (1 i) returns only false
Additional Information one possible fix:

Complex >> = anObject

    anObject ifNil: [ ^ false ].
    anObject isCollection ifTrue: [ ^ false ].

    anObject isComplex
        ifTrue: [^ (real = anObject real) & (imaginary = anObject imaginary)]
        ifFalse: [^ anObject adaptToComplex: self andSend: #=]
Attached Files

- Relationships

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

related to 0003540closed  ComplexTest>>testEquality errored in 3.9 7025 ; fix attached 
related to 0002688new  aNumber = (aNumber + 0 i) answer false 
related to 0002689new  isComplex method name is bad 
related to 0003725closed  [FIX] ComplexTest>>testEquality 
related to 0004261closed  SUnit test ComplexTest>>testEquality fails for nil 

- Notes
(0005924 - 18 - 18 - 18 - 18 - 18 - 18)
Krivanek
07-15-06 10:10

related to 0003540
 
(0005930 - 9 - 9 - 9 - 9 - 9 - 9)
MarcusDenker
07-15-06 12:05

duplicate
 

- Issue History
Date Modified Username Field Change
07-15-06 09:57 Krivanek New Issue
07-15-06 09:57 Krivanek Status new => assigned
07-15-06 09:57 Krivanek Assigned To  => KenCausey
07-15-06 10:10 Krivanek Note Added: 0005924
07-15-06 11:43 MarcusDenker Relationship added related to 0003540
07-15-06 11:54 MarcusDenker Relationship added related to 0002688
07-15-06 11:55 MarcusDenker Relationship added related to 0002689
07-15-06 11:55 MarcusDenker Relationship added related to 0003725
07-15-06 11:56 MarcusDenker Relationship added related to 0004261
07-15-06 12:05 MarcusDenker Status assigned => closed
07-15-06 12:05 MarcusDenker Note Added: 0005930
07-15-06 12:05 MarcusDenker Resolution open => duplicate


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
62 total queries executed.
43 unique queries executed.
Powered by Mantis Bugtracker