Do not emit { nil => nil } for hash literals anymore

This commit is contained in:
Markus Schirp 2013-01-09 23:19:25 +01:00
parent a857cc8edd
commit c591a236ae
3 changed files with 9 additions and 7 deletions

View file

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

View file

@ -59,8 +59,7 @@ module Mutant
# @api private
#
def values
nil_node = new_nil
[[], [nil_node, nil_node] + dup_array]
[[]]
end
# Emit element presence mutations

View file

@ -25,9 +25,6 @@ describe Mutant::Mutator::Node::Literal, 'hash' do
# Empty hash
mutations << '{}'
# Extra element
mutations << '{nil => nil, true => true, false => false}'
end
it_should_behave_like 'a mutator'