Sha256: 7e2b34c6471350acdeea764fb88141e1adc1bcfc2db00b4fba26f4cbce4be6dc

Contents?: true

Size: 232 Bytes

Versions: 26

Compression:

Stored size: 232 Bytes

Contents

require 'spec_helper'

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

26 entries across 26 versions & 1 rubygems

Version Path
opal-0.4.3 spec/parser/line_spec.rb
opal-0.4.2 spec/parser/line_spec.rb
opal-0.4.1 spec/parser/line_spec.rb
opal-0.4.0 spec/parser/line_spec.rb
opal-0.3.44 spec/parser/line_spec.rb
opal-0.3.43 spec/parser/line_spec.rb
opal-0.3.42 spec/grammar/line_spec.rb
opal-0.3.41 spec/grammar/line_spec.rb
opal-0.3.40 spec/grammar/line_spec.rb
opal-0.3.39 spec/grammar/line_spec.rb
opal-0.3.38 spec/grammar/line_spec.rb
opal-0.3.37 spec/grammar/line_spec.rb
opal-0.3.36 spec/grammar/line_spec.rb
opal-0.3.35 spec/grammar/line_spec.rb
opal-0.3.34 spec/grammar/line_spec.rb
opal-0.3.33 spec/grammar/line_spec.rb
opal-0.3.32 spec/grammar/line_spec.rb
opal-0.3.31 spec/grammar/line_spec.rb
opal-0.3.30 spec/grammar/line_spec.rb
opal-0.3.29 spec/grammar/line_spec.rb