parent
1519bfa387
commit
a963b27645
2 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def values
|
||||
[0, 1, -children.first]
|
||||
value = children.first
|
||||
[0, 1, -value, value+1, value-1]
|
||||
end
|
||||
|
||||
end # Fixnuma
|
||||
|
|
|
@ -6,7 +6,7 @@ describe Mutant::Mutator::Node::Literal, 'fixnum' do
|
|||
let(:source) { '10' }
|
||||
|
||||
let(:mutations) do
|
||||
%W(nil 0 1 #{random_fixnum} -10)
|
||||
%W(nil 0 1 #{random_fixnum} -10 9 11)
|
||||
end
|
||||
|
||||
before do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue