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