Fix some whitespace issues

This commit is contained in:
Markus Schirp 2014-04-22 17:51:03 +00:00
parent a53217f83c
commit 6eba9ea903
3 changed files with 2 additions and 3 deletions

View file

@ -93,4 +93,3 @@ private
end
memoize :unparser
end # MutationVerifier

View file

@ -61,7 +61,7 @@ describe Mutant::Mutator::Node::NamedValue::Access, 'mutations' do
mutants << 'a = nil; nil'
mutants << 'a = nil'
mutants << 'a = ::Object.new; a'
# TODO:
# TODO: fix invalid AST
# These ASTs are not valid and should NOT be emitted
# Mutations of lvarasgn need to be special cased to avoid this.
mutants << s(:begin, s(:lvasgn, :srandom, s(:nil)), s(:lvar, :a))

View file

@ -16,7 +16,7 @@ describe Mutant::Mutator::Node::Generic, 'op_asgn' do
mutations << '@a.b += 5'
mutations << 'nil.b += 1'
mutations << 'nil'
# TODO:
# TODO: fix invalid AST
# This should not get emitted as invalid AST with valid unparsed source
mutations << s(:op_asgn, s(:ivar, :@a), :+, s(:int, 1))
end