Sha256: 8f984eb7bff61226075857adc67e3c17b67adb678c12fe2b8e81e8cac5e2aaad

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Mutant::AST::Regexp, '.supported?' do
  subject { described_class.supported?(expression) }

  let(:expression) { described_class.parse(regexp) }
  let(:regexp)     { /foo/                         }

  it { should be(true) }

  context 'conditional regular expressions' do
    let(:regexp) { /((?(1)(foo)(bar)))/ }

    it { should be(false) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.8.18 spec/unit/mutant/ast/regexp/supported_predicate_spec.rb
mutant-0.8.17 spec/unit/mutant/ast/regexp/supported_predicate_spec.rb