free_mutant/meta/class.rb
2017-10-07 15:04:40 -04:00

19 lines
373 B
Ruby

Mutant::Meta::Example.add :class do
source 'class Foo; bar; end'
mutation 'class Foo; nil; end'
mutation 'class Foo; self; end'
mutation 'module Foo; bar; end'
end
Mutant::Meta::Example.add :class do
source 'class Foo; end'
mutation 'module Foo; end'
end
Mutant::Meta::Example.add :class do
source 'class Foo < Baz; end'
mutation 'module Foo; end'
end