Sha256: 642d55a67d5ec1eb172db540352f441c24f18ca9041b7a0d9e99c4ca36f20aba

Contents?: true

Size: 578 Bytes

Versions: 29

Compression:

Stored size: 578 Bytes

Contents

# encoding: utf-8

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 << '[]'
  end

  it_should_behave_like 'a mutator'
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mutant-0.5.15 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.14 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.13 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.12 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.11 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.10 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.9 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.8 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.7 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.6 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.5 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.4 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.3 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.2 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.1 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.5.0 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.3.6 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.3.5 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.3.4 spec/unit/mutant/mutator/node/literal/array_spec.rb
mutant-0.3.3 spec/unit/mutant/mutator/node/literal/array_spec.rb