Do not emit { nil => nil } for hash literals anymore
This commit is contained in:
parent
a857cc8edd
commit
c591a236ae
3 changed files with 9 additions and 7 deletions
10
Changelog.md
10
Changelog.md
|
@ -1,12 +1,18 @@
|
||||||
# v0.2.13 2013-01-05
|
# v0.2.14 2013-01-09
|
||||||
|
|
||||||
|
* [change] Do not emit mutation to { nil => nil } for hash literals
|
||||||
|
|
||||||
|
# v0.2.13 2013-01-09
|
||||||
|
|
||||||
* [fixed] Capture failures that occur in the window between mutation insertion and spec run as kills
|
* [fixed] Capture failures that occur in the window between mutation insertion and spec run as kills
|
||||||
|
|
||||||
|
[Compare v0.2.12..v0.2.13](https://github.com/mbj/mutant/compare/v0.2.12...v0.2.13)
|
||||||
|
|
||||||
# v0.2.12 2013-01-03
|
# v0.2.12 2013-01-03
|
||||||
|
|
||||||
* [fixed] Do not crash when trying to load methods from precompiled ruby under rbx
|
* [fixed] Do not crash when trying to load methods from precompiled ruby under rbx
|
||||||
|
|
||||||
[Compare v0.2.10..v0.2.12](https://github.com/mbj/mutant/compare/v0.2.11...v0.2.12)
|
[Compare v0.2.11..v0.2.12](https://github.com/mbj/mutant/compare/v0.2.11...v0.2.12)
|
||||||
|
|
||||||
# v0.2.11 2013-01-03
|
# v0.2.11 2013-01-03
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def values
|
def values
|
||||||
nil_node = new_nil
|
[[]]
|
||||||
[[], [nil_node, nil_node] + dup_array]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Emit element presence mutations
|
# Emit element presence mutations
|
||||||
|
|
|
@ -25,9 +25,6 @@ describe Mutant::Mutator::Node::Literal, 'hash' do
|
||||||
|
|
||||||
# Empty hash
|
# Empty hash
|
||||||
mutations << '{}'
|
mutations << '{}'
|
||||||
|
|
||||||
# Extra element
|
|
||||||
mutations << '{nil => nil, true => true, false => false}'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_should_behave_like 'a mutator'
|
it_should_behave_like 'a mutator'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue