[rspec-users] Someone please name this matcher for me

Tero Tilus tero at tilus.net
Wed Aug 6 15:08:16 EDT 2008


2008-08-06 14:33, Steve Schafer:
> An unordered collection with possibly multiple occurrences of its
> members is known in mathematics as a "multiset," or, informally, a
> "bag."

I (standing knee-deep in mathematics) was about to offer the following

  be_multiset_equal_to
  be_set_equal_to

Set equality is slightly (imo not fatally) incorrect, and multiset
might be alien to majority of hackers out there.  I'd prefer either of
these or modifications.

-- 
Tero Tilus ## 050 3635 235 ## http://www.tilus.net/koti/tero/


More information about the rspec-users mailing list