Sha256: c1f6dc5872c90d69cd902b7ba8b15136ff123092e4d62f53917cbd2e09b8ba90

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

RSpec.describe(Regexp::Syntax::V2_2_0) do
  let(:syntax) { Regexp::Syntax.new('ruby/2.2.0') }

  tests = {
    implements: {
      property: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0,
      nonproperty: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0
    }
  }

  tests.each do |method, types|
    types.each do |type, tokens|
      tokens.each do |token|
        specify("syntax_V2_2_0_#{method}_#{type}_#{token}") do
          expect(syntax.implements?(type, token)).to be true
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
regexp_parser-1.5.0 spec/syntax/versions/2.2.0_spec.rb