Batman.BinarySetOperation. It implements a union operation: the
SetUnion contains members found in either set passed to the constructor, without duplicates.
Batman.SetUnion is a subclass of
Batman.Set, you can use it just like a
test 'SetUnion contains the union of two sets', ->
left = new Batman.Set(1, 2, 3)
right = new Batman.Set(3, 4, 5)
operation = new Batman.SetUnion(left, right)
ok operation.has(1), 'has items from the left set'
ok operation.has(4), 'has items from the right set'
ok operation.has(3), 'has items from both sets'