Sha256: ea87179379f6f22eedaf5a1497d7704b772f2df23f55c0f4a5ad68c0f4f6e802
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
describe "Parsi::Date#cwday?" do it "returns the day of calendar week (1-7, Monday is 1)" do Parsi::Date.civil(1393, 12, 3).cwday.should == 7 Parsi::Date.civil(1394, 1, 3).cwday.should == 1 end end describe "Parsi::Date#cweek?" do it "returns the calendar week number (1-53)" do Parsi::Date.civil(1394, 1, 3).cweek.should == 1 Parsi::Date.civil(1394, 1, 7).cweek.should == 1 Parsi::Date.civil(1394, 1, 8).cweek.should == 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parsi-date-0.3.0 | spec/parsi-date/week_methods_spec.rb |