Sha256: 9e3c1c3f0600c1a48f69b3c9576c88bb1994fa9b3b792353e64809f31479f49f

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe "The __LINE__ keyword" do
  it "should always return a literal number of the current line" do
    opal_parse("__LINE__").should == [:lit, 1]
    opal_parse("\n__LINE__").should == [:lit, 2]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.20 spec/grammar/line_spec.rb
opal-0.3.19 spec/grammar/line_spec.rb
opal-0.3.18 spec/grammar/line_spec.rb
opal-0.3.17 test/grammar/line_spec.rb
opal-0.3.16 spec/grammar/line_spec.rb
opal-0.3.15 spec/grammar/line_spec.rb