Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non universal super mutation #1450

Merged
merged 2 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.12.1 2024-06-09

+ [#1445](https://github.com/mbj/mutant/pull/1444)

Remove invalid mutation operator.

# v0.12.1 2024-05-11

* [#1444](https://github.com/mbj/mutant/pull/1444)
Expand All @@ -8,9 +14,8 @@
semantics by these methods over just `#first` and `#last`.

Add `#first -> #last` and `#last -> #first` to full operator set. These where
highly controversial in the past and thus where removed. People who do not care
about ordering of their collections can now choose the light operator set, so people who care
(and should care) can now care (again).
highly controversial in the past and thus where removed.
People who do not care about ordering of their collections can choose the light operator set.

* [#1443](https://github.com/mbj/mutant/pull/1443)

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
Expand Down
1 change: 0 additions & 1 deletion lib/mutant/mutator/node/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Super < self

def dispatch
emit_singletons
emit(N_EMPTY_SUPER)
children.each_index do |index|
mutate_child(index)
delete_child(index)
Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module Mutant
# Current mutant version
VERSION = '0.12.1'
VERSION = '0.12.2'
end # Mutant
1 change: 0 additions & 1 deletion meta/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
source 'super(foo, bar)'

singleton_mutations
mutation 'super()'
mutation 'super(foo)'
mutation 'super(bar)'
mutation 'super(foo, nil)'
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.minitest.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-minitest (0.12.1)
mutant-minitest (0.12.2)
minitest (~> 5.11)
mutant (= 0.12.1)
mutant (= 0.12.2)

GEM
remote: https://rubygems.org/
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.10.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.11.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.12.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.13.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.8.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions test_app/Gemfile.rspec3.9.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ..
specs:
mutant (0.12.1)
mutant (0.12.2)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
regexp_parser (~> 2.9.0)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)
mutant-rspec (0.12.1)
mutant (= 0.12.1)
mutant-rspec (0.12.2)
mutant (= 0.12.2)
rspec-core (>= 3.8.0, < 4.0.0)

GEM
Expand Down