Fix some whitespace issues
This commit is contained in:
parent
a53217f83c
commit
6eba9ea903
3 changed files with 2 additions and 3 deletions
|
@ -93,4 +93,3 @@ private
|
||||||
end
|
end
|
||||||
memoize :unparser
|
memoize :unparser
|
||||||
end # MutationVerifier
|
end # MutationVerifier
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ describe Mutant::Mutator::Node::NamedValue::Access, 'mutations' do
|
||||||
mutants << 'a = nil; nil'
|
mutants << 'a = nil; nil'
|
||||||
mutants << 'a = nil'
|
mutants << 'a = nil'
|
||||||
mutants << 'a = ::Object.new; a'
|
mutants << 'a = ::Object.new; a'
|
||||||
# TODO:
|
# TODO: fix invalid AST
|
||||||
# These ASTs are not valid and should NOT be emitted
|
# These ASTs are not valid and should NOT be emitted
|
||||||
# Mutations of lvarasgn need to be special cased to avoid this.
|
# Mutations of lvarasgn need to be special cased to avoid this.
|
||||||
mutants << s(:begin, s(:lvasgn, :srandom, s(:nil)), s(:lvar, :a))
|
mutants << s(:begin, s(:lvasgn, :srandom, s(:nil)), s(:lvar, :a))
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe Mutant::Mutator::Node::Generic, 'op_asgn' do
|
||||||
mutations << '@a.b += 5'
|
mutations << '@a.b += 5'
|
||||||
mutations << 'nil.b += 1'
|
mutations << 'nil.b += 1'
|
||||||
mutations << 'nil'
|
mutations << 'nil'
|
||||||
# TODO:
|
# TODO: fix invalid AST
|
||||||
# This should not get emitted as invalid AST with valid unparsed source
|
# This should not get emitted as invalid AST with valid unparsed source
|
||||||
mutations << s(:op_asgn, s(:ivar, :@a), :+, s(:int, 1))
|
mutations << s(:op_asgn, s(:ivar, :@a), :+, s(:int, 1))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue