Sha256: 9d5aedc79f77f2c4af13b7f59302604b28885e27a9c1eea4509dbc21548ef4cd

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

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

  tests = {
    implements: {
      property: T::UnicodeProperty::Script_V1_9_3 + T::UnicodeProperty::Age_V1_9_3,
      nonproperty: T::UnicodeProperty::Script_V1_9_3 + T::UnicodeProperty::Age_V1_9_3
    }
  }

  tests.each do |method, types|
    types.each do |type, tokens|
      tokens.each do |token|
        specify("syntax_V1_9_3_#{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/1.9.3_spec.rb