From: knu@... Date: 2017-09-19T08:48:22+00:00 Subject: [ruby-core:82867] [Ruby trunk Feature#13801] Implement case equality test for Set#=== Issue #13801 has been updated by knu (Akinori MUSHA). I don't remember but I guess I didn't define `Set#===` probably because Array didn't, but I agree `Set#===` could be useful and intuitive, so I've merged your PR with a slight modification (alias to save an extra method call) and a test in addition to the specs. Thanks! ---------------------------------------- Feature #13801: Implement case equality test for Set#=== https://bugs.ruby-lang.org/issues/13801#change-66766 * Author: davidarnold (David Arnold) * Status: Closed * Priority: Normal * Assignee: knu (Akinori MUSHA) * Target version: ---------------------------------------- In keeping with other class semantics, Set should implement an inclusion / membership test for #===. For example with Range: ~~~ ruby (1..3) === 2 #=> true ~~~ Desired behavior: ~~~ ruby Set[1, 2, 3] === 2 #=> true ~~~ Current behavior: ~~~ ruby Set[1, 2, 3] === 2 #=> false ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: