Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#454 closed defect (fixed)

Intersection : last element of set B not considered

Reported by: bartlebooth@… Owned by: Tom Trenka
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: Set intersection Cc: ttrenka@…
Blocked By: Blocking:

Description

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 14 years ago by anonymous

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

comment:2 Changed 14 years ago by alex

Cc: ttrenka@… added

comment:3 Changed 14 years ago by ttrenka@…

Resolution: fixed
Status: newclosed

Fixed.

comment:4 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.