Sha256: 2f7cab08ede900317038cadc6f164ecfc75ae9883c2ea33609849257d7cd7805

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::While do

  context 'with more than one statement' do
    let(:source) { 'while true; foo; bar; end' }

    let(:mutations) do
      mutations = []
      mutations << 'while true; bar; end'
      mutations << 'while true; foo; end'
      mutations << 'while true; end'
      mutations << 'while false; foo; bar; end'
      mutations << 'while nil;   foo; bar; end'
    end

    it_should_behave_like 'a mutator'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.3.0.rc1 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.3.0.beta22 spec/unit/mutant/mutator/node/while/mutation_spec.rb