Sha256: fcfdcd9054f0fed5732381cf81144579d1939b406899bbf8e9e6f500b7f21d60
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' describe Mutant::Mutator::Node::Literal, 'array' do let(:source) { '[true, false]' } let(:mutations) do mutations = [] # Literal replaced with nil mutations << 'nil' # Mutation of each element in array mutations << '[nil, false]' mutations << '[false, false]' mutations << '[true, nil]' mutations << '[true, true]' # Remove each element of array once mutations << '[true]' mutations << '[false]' # Empty array mutations << '[]' # Extra element mutations << '[true, false, nil]' end it_should_behave_like 'a mutator' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.2.2 | spec/unit/mutant/mutator/node/literal/array_spec.rb |
mutant-0.2.1 | spec/unit/mutant/mutator/node/literal/array_spec.rb |