Sha256: ed266ca5e8d6eb76d5e85449b2150e0db0c190bb700d2f58b8ad584b9bd12704

Contents?: true

Size: 540 Bytes

Versions: 15

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::Generic, 'match_current_line' do
  let(:source) { 'true if //' }

  let(:mutations) do
    mutations = []
    mutations << 'false if //'
    mutations << 'nil if //'
    mutations << 'true if true'
    mutations << 'true if false'
    mutations << 'true if nil'
    mutations << s(:if, s(:send, s(:match_current_line, s(:regexp, s(:regopt))), :!), s(:true), nil)
    mutations << 'true if /a\A/'
    mutations << 'nil'
  end

  it_should_behave_like 'a mutator'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mutant-0.5.10 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.9 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.8 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.7 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.6 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.5 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.4 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.3 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.2 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.1 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.5.0 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.3.6 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.3.5 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.3.4 spec/unit/mutant/mutator/node/match_current_line_spec.rb
mutant-0.3.3 spec/unit/mutant/mutator/node/match_current_line_spec.rb