c392cb5e4b
* Mutant is ruby 2.0+ only where UTF-8 is default encoding
12 lines
597 B
Ruby
12 lines
597 B
Ruby
Mutant::Meta::Example.add do
|
|
source ':"foo#{bar}baz"'
|
|
|
|
singleton_mutations
|
|
# 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
|