meta/send.rb in mutant-0.8.12 vs meta/send.rb in mutant-0.8.13

- old
+ new

@@ -623,11 +623,11 @@ mutation 'foo[*self]' mutation 'foo[*nil]' mutation 'self[*bar]' end -(Mutant::AST::Types::BINARY_METHOD_OPERATORS - %i[<= >= < > == != eql?]).each do |operator| +(Mutant::AST::Types::BINARY_METHOD_OPERATORS - %i[=~ <= >= < > == != eql?]).each do |operator| Mutant::Meta::Example.add :send do source "true #{operator} false" singleton_mutations mutation 'true' @@ -743,6 +743,31 @@ singleton_mutations mutation 'Proc.new' mutation 'self.new { }' mutation 'Proc.new { raise }' mutation 'lambda { }' +end + +Mutant::Meta::Example.add :send do + source 'a =~ //' + + singleton_mutations + mutation 'a' + mutation 'nil =~ //' + mutation 'self =~ //' + mutation '//' + mutation 'a =~ /nomatch\A/' + mutation 'a.match?(//)' +end + +Mutant::Meta::Example.add :send do + source '//.match(a)' + + singleton_mutations + mutation 'a' + mutation '//.match' + mutation '//.match(nil)' + mutation '//.match(self)' + mutation '//.match?(a)' + mutation '//' + mutation '/nomatch\A/.match(a)' end