Commit graph

19 commits

Author SHA1 Message Date
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
Markus Schirp
8bddef0171 Add support for mutating start and end nodes for range literals 2013-09-02 20:49:52 +02:00
Dan Kubb
7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00
Markus Schirp
46f90aa328 Fix all style warnings under spec/**/*.rb 2013-07-29 00:25:15 +02:00
Dan Kubb
ee72d6c042 Fix rubocop warnings
* Still a few more to go, but this should be the majority of them
2013-07-28 12:16:45 -07:00
Markus Schirp
b0a03171ac Adjust expected mutation to unparser change 2013-07-28 18:49:05 +02:00
Markus Schirp
efd6a52f16 Hardcode AST like parser would produce it 2013-07-28 18:46:29 +02:00
Markus Schirp
bd01dd5335 Correct regexp mutator in case of interpolation
Closes #67
2013-07-25 20:24:26 +02:00
Markus Schirp
30884c22a2 Remove literal array mutation that adds an element
It turns out this mutation is not "universal". Meaning not in all
scenarios this extra element triggers an edge case the specs have to
cover.
2013-07-08 17:57:25 +02:00
Markus Schirp
56fb2c7285 Port case mutations to parser 2013-06-14 21:12:09 +02:00
Markus Schirp
a963b27645 Add fixnum scalar bounds mutation for literal fixnu,s
Closes #23
2013-06-14 21:12:09 +02:00
Markus Schirp
1519bfa387 Fix literal nil mutator specs 2013-06-14 21:12:09 +02:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
c591a236ae Do not emit { nil => nil } for hash literals anymore 2013-01-09 23:19:25 +01:00
Markus Schirp
97a75dd062 Cleanup mutation generation
This is a reaction to the to_source rewrite

* Do not use 1.8 specific nodes anymore
* Do not generate AST nodes that would not be generatable from source
2013-01-09 20:43:06 +01:00
Markus Schirp
83f86ffbdc Adjust mutation expection according to change in to_source 2012-12-14 19:40:46 +01:00
Markus Schirp
8a4fad0973 Prepend additional elements to datastructurs instead of append
* This makes it far more likely the elements are used in paralel
  assignment. Credits for idea @snusnu!
2012-12-08 01:53:54 +01:00
Markus Schirp
b5430e2000 Cleanup crashes and invalid mutants 2012-12-07 23:27:21 +01:00
Markus Schirp
5f215e1dc1 Move specs and adjust flay score 2012-12-06 21:51:52 +01:00