Fix expected AST differencies from unparser changes

This commit is contained in:
Markus Schirp 2014-11-09 19:31:28 +00:00
parent 357e564aa7
commit e983afe3dc
2 changed files with 8 additions and 7 deletions

View file

@ -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

View file

@ -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