提交 cd6c5677 编写于 作者: A Arun Agrawal

Tests added for monday and sunday

Reference commits : 
a8f2860d
80ac4dc6
上级 80ac4dc6
......@@ -57,6 +57,14 @@ def test_beginning_of_week
assert_equal Date.new(2005,11,28), Date.new(2005,12,04).beginning_of_week #sunday
end
def test_monday
assert_equal Date.new(2005,11,28), Date.new(2005,11,28).monday
end
def test_sunday
assert_equal Date.new(2008,3,2), Date.new(2008,3,02).sunday
end
def test_beginning_of_week_in_calendar_reform
assert_equal Date.new(1582,10,1), Date.new(1582,10,15).beginning_of_week #friday
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册