mutant 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.2.3 2012-12-08
2
+
3
+ * [fixed] Prepend extra elements to hash and array instead of append. This fixes unkillable mutators in parallel assignments!
4
+
1
5
  # v0.2.2 2012-12-07
2
6
 
3
7
  * [feature] Add a shitload of operator expansions for dm2 strategy
@@ -19,7 +19,7 @@ module Mutant
19
19
  emit_attribute_mutations(:body)
20
20
  emit_self([])
21
21
  emit_nil
22
- emit_self(node.body.dup << new_nil)
22
+ emit_self([new_nil] + node.body.dup)
23
23
  end
24
24
  end
25
25
  end
@@ -65,7 +65,7 @@ module Mutant
65
65
  # @api private
66
66
  #
67
67
  def values
68
- [[], dup_array << new_nil << new_nil ]
68
+ [[], [new_nil, new_nil] + dup_array]
69
69
  end
70
70
 
71
71
  # Emit element presence mutations
data/mutant.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mutant'
5
- gem.version = '0.2.2'
5
+ gem.version = '0.2.3'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.email = [ 'mbj@seonic.net' ]
8
8
  gem.description = 'Mutation testing for ruby under rubinius'
@@ -23,7 +23,7 @@ describe Mutant::Mutator::Node::Literal, 'array' do
23
23
  mutations << '[]'
24
24
 
25
25
  # Extra element
26
- mutations << '[true, false, nil]'
26
+ mutations << '[nil, true, false]'
27
27
  end
28
28
 
29
29
  it_should_behave_like 'a mutator'
@@ -27,7 +27,7 @@ describe Mutant::Mutator::Node::Literal, 'hash' do
27
27
  mutations << '{}'
28
28
 
29
29
  # Extra element
30
- mutations << '{true => true, false => false, nil => nil}'
30
+ mutations << '{nil => nil, true => true, false => false}'
31
31
  end
32
32
 
33
33
  it_should_behave_like 'a mutator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: