Sha256: 76a77c6d65140c5979265df08c67e51743f313884c18b04ac1c2bdfb674c526f
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'spec_helper' describe Mutant::Mutator::Node::Literal, 'float' do let(:source) { '10.0' } let(:mutations) do mutations = [] mutations << 'nil' mutations << '0.0' mutations << '1.0' mutations << random_float.to_s mutations << '0.0/0.0' mutations << '1.0/0.0' mutations << [:negate, [:call, [:lit, 1.0], :/, [:arglist, [:lit, 0.0]]]] mutations << [:lit, -10.0] end let(:random_float) { 7.123 } before do Mutant::Random.stub(:float => random_float) end it_should_behave_like 'a mutator' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.2.0 | spec/unit/mutant/mutator/node/literal/float_spec.rb |