Sha256: 4ccdb4aeb53a517c4397966d4d8ef8b82e837da9c20047eb3a42b083a7ecfc8b

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

require(File.join(File.dirname(__FILE__), '..', 'date_spec_helper'))

describe "Date#jd" do

  it "should be able to construct a Date object based on the Julian day" do
    Date.jd(2454482).should == Date.civil(2008, 1, 16)
  end

  it "should be able to determine the Julian day for a Date object" do
    Date.civil(2008, 1, 16).jd.should == 2454482
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
third_base-1.3.0 spec/date/julian_spec.rb
third_base-1.2.0 spec/date/julian_spec.rb
third_base-1.1.1 spec/date/julian_spec.rb
third_base-1.1.0 spec/date/julian_spec.rb
third_base-1.0.1 spec/date/julian_spec.rb
third_base-1.0.0 spec/date/julian_spec.rb