Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#454 closed defect (fixed)

Intersection : last element of set B not considered

Reported by: [email protected] Owned by: Tom Trenka
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: Set intersection Cc: [email protected]
Blocked By: Blocking:


The function dojo.collections.Set.intersection contains following condition : while (!e.atEnd){ <<comparison>> }

The comparison is skipped for the last element, since for this element, the function atEnd returns true. E.g. for a collection containing 1 element, starting position 0 makes atEnd return true.

The same is valid for the function dojo.collections.Set.union, and perhaps some other functions (haven't looked closely).

Change History (4)

comment:1 Changed 16 years ago by anonymous

Milestone: 0.2.2release0.3release
Owner: changed from anonymous to Tom Trenka

comment:2 Changed 16 years ago by alex

Cc: [email protected] added

comment:3 Changed 16 years ago by [email protected]

Resolution: fixed
Status: newclosed


comment:4 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.