diff --git a/meta/begin.rb b/meta/begin.rb index d1e75359..39ef6e98 100644 --- a/meta/begin.rb +++ b/meta/begin.rb @@ -20,6 +20,6 @@ Mutant::Meta::Example.add do source s(:begin, s(:true)) # Mutation of each statement in block - mutation s(:begin, s(:false)) mutation s(:begin, s(:nil)) + mutation s(:begin, s(:false)) end diff --git a/meta/dsym.rb b/meta/dsym.rb index 80d8887d..dcba6c0f 100644 --- a/meta/dsym.rb +++ b/meta/dsym.rb @@ -4,10 +4,11 @@ Mutant::Meta::Example.add do source ':"foo#{bar}baz"' singleton_mutations - mutation ':"#{nil}#{bar}baz"' - mutation ':"#{self}#{bar}baz"' - mutation ':"foo#{bar}#{nil}"' - mutation ':"foo#{bar}#{self}"' - mutation ':"foo#{nil}baz"' - mutation ':"foo#{self}baz"' + # TODO: Unparser imperfection two asts with same source. + mutation s(:dsym, s(:nil), s(:begin, s(:send, nil, :bar)), s(:str, 'baz')) + mutation s(:dsym, s(:self), s(:begin, s(:send, nil, :bar)), s(:str, 'baz')) + mutation s(:dsym, s(:str, 'foo'), s(:begin, s(:self)), s(:str, 'baz')) + mutation s(:dsym, s(:str, 'foo'), s(:begin, s(:nil)), s(:str, 'baz')) + mutation s(:dsym, s(:str, 'foo'), s(:begin, s(:send, nil, :bar)), s(:nil)) + mutation s(:dsym, s(:str, 'foo'), s(:begin, s(:send, nil, :bar)), s(:self)) end