meta/send.rb in mutant-0.8.3 vs meta/send.rb in mutant-0.8.4

- old
+ new

@@ -13,10 +13,36 @@ mutation 'a' mutation 'b' end Mutant::Meta::Example.add do + source 'A.const_get(:B)' + + singleton_mutations + mutation 'A::B' + mutation 'A.const_get' + mutation 'A' + mutation ':B' + mutation 'A.const_get(nil)' + mutation 'A.const_get(self)' + mutation 'A.const_get(:B__mutant__)' + mutation 'self.const_get(:B)' +end + +Mutant::Meta::Example.add do + source 'A.const_get(bar)' + + singleton_mutations + mutation 'A.const_get' + mutation 'A' + mutation 'bar' + mutation 'A.const_get(nil)' + mutation 'A.const_get(self)' + mutation 'self.const_get(bar)' +end + +Mutant::Meta::Example.add do source 'a >= b' singleton_mutations mutation 'a > b' mutation 'a == b' @@ -423,11 +449,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 do source "true #{operator} false" singleton_mutations mutation 'true' @@ -435,6 +461,20 @@ mutation "false #{operator} false" mutation "nil #{operator} false" mutation "true #{operator} true" mutation "true #{operator} nil" end +end + +Mutant::Meta::Example.add do + source 'a != b' + + singleton_mutations + mutation 'nil != b' + mutation 'self != b' + mutation 'a' + mutation 'b' + mutation 'a != nil' + mutation 'a != self' + mutation '!a.eql?(b)' + mutation '!a.equal?(b)' end