Markus Schirp
5af2af345d
Handle attribute assignments to self correctly
...
* Closes #149
2014-01-12 00:43:47 +01:00
Markus Schirp
ad9c1d4526
Add specs for mutations attribute assignments
...
* References #149
2014-01-11 23:49:05 +01:00
Markus Schirp
f050114d9f
Fix mutation expectations for match current line
...
Mutant produces an AST that is asymetric to how parser parses.
It still unparses to valid ruby so not an issue currently.
2014-01-11 23:45:25 +01:00
Markus Schirp
98fde16f22
Fix specs failure introduced by unparser change
2013-12-31 17:08:32 +01:00
Markus Schirp
b2542feba4
style
2013-12-31 13:12:26 +01:00
Markus Schirp
49c71dcf75
Whitespace
2013-12-29 23:32:32 +01:00
Markus Schirp
9edb375ef3
Use more modern spec layout
...
* This specs still have spec per method granularity
* But one file specs multiple methods
* Compatible with mutant spec selector
* Deduplicates boilerplate unit setup
2013-12-29 23:29:58 +01:00
Markus Schirp
a9974741f2
Use more modern spec file naming in spec/unit/mutator/node/*_spec.rb
...
* The old layout was imposed by older mutants that selected tests via
file names.
* Reduce the useless namespace Mutator::Node::Connective
2013-12-29 23:04:28 +01:00
Markus Schirp
1b28438d43
Remove Mutant::Support::Metho object in favor of procto
2013-12-29 22:50:24 +01:00
Markus Schirp
43c546fe74
Add conditional loop mutator
...
* Closes #143
* Renamed Mutator::Node::While to ConditionalLoop and use it to
generated mutations for until also.
2013-12-29 22:32:26 +01:00
Markus Schirp
2c47c951ec
Add missing encoding statements
2013-12-07 19:07:18 +01:00
Lars Gierth
21128f74cf
Don't emit invalid MLHS child mutation
2013-12-07 01:49:18 +01:00
Markus Schirp
a0a7eb3885
Do not emit name mutation for underscored optional arguments
...
Closes #98
2013-12-04 18:51:36 +01:00
Markus Schirp
27d8387795
Add explicit resbody mutator
...
Closes : #117
2013-12-01 22:42:54 +01:00
Markus Schirp
ec55f85804
Do not emit mutations if signed zero float/double
...
There are two representations of zero in IEEE 754. The negative and the
positive zero. This commutis removes a mutation that causes the sign to be flipped.
These mutations are very uneasy to kill. Currently only these side
effects are known:
1 / -0.0 => -Infinity
1 / 0.0 => Infinity
0.0.to_s => "0.0"
-0.0.to_s => "-0.0"
I'm happy to readd the mutation - when someone adds more wisdom to
this case ;)
Closes #126
2013-12-01 20:34:19 +01:00
Markus Schirp
9e65b519c3
Fix some rubocop reported style issues
2013-11-20 20:05:28 +01:00
Markus Schirp
73aad2f6a3
Remove duplication between next and break mutator
2013-11-20 19:42:41 +01:00
Dan Kubb
749b2b2474
Add mutator for kwbegin nodes
2013-11-03 20:51:55 -08:00
Dan Kubb
ec7e6c1d5f
Add mutator for next nodes
2013-11-03 20:35:39 -08:00
Dan Kubb
acc9ba5a6f
Add mutator for break nodes
2013-11-03 20:32:54 -08:00
Dan Kubb
6a9e4aa752
Fix spec description for yield mutator
2013-11-03 20:32:32 -08:00
Dan Kubb
b41283d84c
Add mutator for yield nodes
2013-11-03 12:37:47 -08:00
Markus Schirp
681b51f6ac
Fix multiple diff reporter errors on memoizers
...
Closes #130
2013-10-30 09:08:10 +01:00
Tim Chambers
0c97663898
Typo in context
...
Change earily to early
2013-10-28 09:39:41 -04:00
Dan Kubb
a084837cdb
Fix rubocop warnings
2013-10-20 21:56:30 -07:00
Markus Schirp
3f61c482c1
Add missing encoding comments
2013-09-14 01:27:00 +02:00
Markus Schirp
49b09eeeac
Fix rubocop reported issues
...
It will take ages till my brain produces 1.9 style syntax :D
2013-09-14 01:17:14 +02:00
Markus Schirp
7bbe86ff95
Add specs for Mutant::Subject#indentification
2013-09-14 01:10:03 +02:00
Markus Schirp
2b620f4889
Add specs for public interface of Mutant::Mutation
2013-09-14 01:01:11 +02:00
Markus Schirp
7b002a91ee
Add spec for some strategy methods
2013-09-14 00:49:04 +02:00
Markus Schirp
e9931f6abe
Slightly refactor CLI
...
* Backlists should "work" now.
* CLI (match expression) classifiers are not used as matchers anymore
2013-09-13 22:34:19 +02:00
Markus Schirp
010daad4ca
Rename spec for post --rspec-dm2
2013-09-11 22:16:23 +02:00
Markus Schirp
ded39d84e6
Rename classifier spec
...
No need for that very verbose naming scheme anymore.
2013-09-11 22:11:33 +02:00
Markus Schirp
fb4d962ccf
Adjust specs for prior commit
2013-09-11 22:10:46 +02:00
Markus Schirp
05385748e5
Remove dead code
2013-09-11 21:01:48 +02:00
Markus Schirp
45f074dbee
Make Classifier.build raise exception on invalid matcher notation
2013-09-11 20:49:51 +02:00
Dan Kubb
ce91c936cd
Add explicit mutator for blockarg
2013-09-08 23:08:44 -07:00
Dan Kubb
b64ff4e6a8
Add missing encoding tags
2013-09-08 22:37:07 -07:00
Markus Schirp
921562b294
Merge pull request #111 from mbj/dsym-mutator
...
Add explicit mutator for dsym
2013-09-08 14:09:14 -07:00
Markus Schirp
f1b4dc2c2f
Use 1.9 hash syntax also for specs
2013-09-08 22:12:23 +02:00
Markus Schirp
251fe68175
Add specs for mutation filter
2013-09-08 21:58:39 +02:00
Dan Kubb
104d2b7b05
Add explicit mutator for dsym
2013-09-08 08:17:47 -07:00
Markus Schirp
48d0bfb55e
Merge branch 'master' into restarg-mutator
...
Conflicts:
lib/mutant/mutator/node/generic.rb
2013-09-08 11:51:38 +02:00
Markus Schirp
8815f53a2e
Collapse op_assign emitters into one
2013-09-08 11:45:00 +02:00
Dan Kubb
475512146f
Change emit_nil to not emit on the left node of an assignment
...
* Add emit_nil to other nodes so that they can be replaced
with nil, effectively removing them from the code.
2013-09-07 23:57:47 -07:00
Dan Kubb
58e6910573
Add explicit mutator for and_asgn
2013-09-07 23:57:47 -07:00
Dan Kubb
3eef4f1173
Add explicit mutator for or_asgn
2013-09-07 23:57:47 -07:00
Dan Kubb
f714f8215f
Add explicit mutator for op_asgn
2013-09-07 23:57:47 -07:00
Dan Kubb
1d567f65f1
Add explicit mutator for dstr
2013-09-07 23:57:46 -07:00
Dan Kubb
610ab6e2d3
Fix whitespace
2013-09-07 23:57:46 -07:00