meta/send.rb in mutant-0.8.24 vs meta/send.rb in mutant-0.9.0

- old
+ new

@@ -136,17 +136,10 @@ singleton_mutations mutation 'map' end Mutant::Meta::Example.add :send do - source 'to_i' - - singleton_mutations - mutation 'to_int' -end - -Mutant::Meta::Example.add :send do source 'foo.to_s' singleton_mutations mutation 'foo' mutation 'self.to_s' @@ -158,11 +151,10 @@ singleton_mutations mutation 'foo' mutation 'self.to_a' mutation 'foo.to_ary' - mutation 'foo.to_set' end Mutant::Meta::Example.add :send do source 'foo.to_i' @@ -515,46 +507,10 @@ mutation '!a.eql?(b)' mutation '!a.equal?(b)' end Mutant::Meta::Example.add :send do - source 'sample' - - singleton_mutations - mutation 'first' - mutation 'last' -end - -Mutant::Meta::Example.add :send do - source 'pop' - - singleton_mutations - mutation 'last' -end - -Mutant::Meta::Example.add :send do - source 'shift' - - singleton_mutations - mutation 'first' -end - -Mutant::Meta::Example.add :send do - source 'first' - - singleton_mutations - mutation 'last' -end - -Mutant::Meta::Example.add :send do - source 'last' - - singleton_mutations - mutation 'first' -end - -Mutant::Meta::Example.add :send do source '!!foo' singleton_mutations mutation '!foo' mutation '!self' @@ -617,20 +573,32 @@ 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 + +Mutant::Meta::Example.add :send do + source 'foo(bar { nil; nil })' + + singleton_mutations + mutation 'bar { nil; nil }' + mutation 'foo' + mutation 'foo(bar { nil })' + mutation 'foo(bar { raise })' + mutation 'foo(bar {})' + mutation 'foo(bar)' + mutation 'foo(self)' + mutation 'foo(nil)' end