Sha256: 847bee9ede1822b3d5a72fb6a20f78ba1bb5f1bb6c1e4cf34b1769c4d5ef83d4

Contents?: true

Size: 285 Bytes

Versions: 12

Compression:

Stored size: 285 Bytes

Contents

require 'spec_helper'

describe "$1..$9" do
  it "parses as s(:nth_ref)" do
    opal_parse('$1').first.should == :nth_ref
  end

  it "references the number 1..9 as first part" do
    opal_parse('$1').should == [:nth_ref, '1']
    opal_parse('$9').should == [:nth_ref, '9']
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/parser/nth_ref_spec.rb
opal-0.5.4 spec/opal/parser/nth_ref_spec.rb
opal-0.5.2 spec/opal/parser/nth_ref_spec.rb
opal-0.5.0 spec/opal/parser/nth_ref_spec.rb
opal-0.4.4 spec/parser/nth_ref_spec.rb
opal-0.4.3 spec/parser/nth_ref_spec.rb
opal-0.4.2 spec/parser/nth_ref_spec.rb
opal-0.4.1 spec/parser/nth_ref_spec.rb
opal-0.4.0 spec/parser/nth_ref_spec.rb
opal-0.3.44 spec/parser/nth_ref_spec.rb
opal-0.3.43 spec/parser/nth_ref_spec.rb
opal-0.3.42 spec/grammar/nth_ref_spec.rb