Sha256: 858347037f187d86a62385bfa745e9419adcc6e0d8f81334922dec5060cf514e

Contents?: true

Size: 223 Bytes

Versions: 6

Compression:

Stored size: 223 Bytes

Contents

require 'spec_helper'

describe 'EcmaReValidator::AtomicGrouping' do
  it 'should fail if regexp has atomic grouping' do
    re = /\b(?>integer|insert|in)\b./

    expect(EcmaReValidator.valid?(re)).to eql(false)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecma-re-validator-0.3.0 spec/atomic_grouping_spec.rb
ecma-re-validator-0.2.1 spec/atomic_grouping_spec.rb
ecma-re-validator-0.2.0 spec/atomic_grouping_spec.rb
ecma-re-validator-0.1.2 spec/atomic_grouping_spec.rb
ecma-re-validator-0.1.1 spec/atomic_grouping_spec.rb
ecma-re-validator-0.1.0 spec/atomic_grouping_spec.rb