Sha256: a11618aebc797f9273f6b77980de5b4274c146ba1c2b93c77a626c2a8dca74bd

Contents?: true

Size: 458 Bytes

Versions: 83

Compression:

Stored size: 458 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../spec_helper'

describe "The __LINE__ constant" do
  it "increments for each line" do    
    cline = __LINE__
    __LINE__.should == cline + 1
    # comment is at cline + 2
    __LINE__.should == cline + 3
  end

# XXX eval not supported
#  it "is eval aware" do
#    eval("__LINE__").should == 1
#    cmd =<<EOF
## comment at line 1
#__LINE__
#EOF
#    eval(cmd).should == 2
#  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/language/line_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/language/line_spec.rb