Sha256: e9222fd98dce0d79c7b9d0727ac56785f6172073a2cfcdc5611ab0f7e49ff57c

Contents?: true

Size: 813 Bytes

Versions: 8

Compression:

Stored size: 813 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::Connective::Binary, 'mutations' do
  context 'and' do
    let(:source) { 'true and false' }

    let(:mutations) do
      mutations = []
      mutations << 'nil'
      mutations << 'true'
      mutations << 'false'

      mutations << 'true or false'

      mutations << 'not true and false'
      mutations << 'not(true and false)'
    end

    it_should_behave_like 'a mutator'
  end

  context 'or' do
    let(:source) { 'true or false' }

    let(:mutations) do
      mutations = []
      mutations << 'nil'
      mutations << 'true'
      mutations << 'false'

      mutations << 'true and false'

      mutations << 'not true or false'
      mutations << 'not(true or false)'
    end

    it_should_behave_like 'a mutator'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.3.1 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.rc5 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.rc4 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.rc3 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.rc2 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.rc1 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb
mutant-0.3.0.beta22 spec/unit/mutant/mutator/node/connective/binary/mutation_spec.rb