Issue #4826 has been updated by Yui NARUSE.

Status changed from Assigned to Closed

?????????46f643b17d ??? 0396550b ??? RubySpec ??????????????????
????????????????????????????????
----------------------------------------
Bug #4826: Date fails RubySpec
http://redmine.ruby-lang.org/issues/4826

Author: Yui NARUSE
Status: Closed
Priority: Normal
Assignee: tadayoshi funaba
Category: 
Target version: 
ruby -v: ruby 1.9.3dev (2011-06-04 trunk 31920) [x86_64-freebsd8.2]


??????? Date ?????????以???????????? RubySpec ???失????????????????
RubySpec ?????????????????????????????????????????????????????????Date ????????????????????????確?????????????????
spec ????????????????????????????????????????????????????????????????????????????


???????RubySpec ??? http://rubyspec.org/ ???????
RubySpec ????????????????git ??????????????????????
make update-rubyspec
??????????spec/rubyspec ???? rubyspec ???????????????????????????????
make test-rubyspec MSPECOPT='-V -j -f s /library/date/civil_spec.rb'
???????????該??????????????????走??????????????????????????


6)
Date#civil creats a Date for different calendar reform dates FAILED
Expected 2
 to equal 20

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:61:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/civil_spec.rb:5:in `<top (required)>'

7)
Date#civil doesn't blow up (illegal instruction and segfault, respectively) when fed huge numbers FAILED
Expected FloatDomainError but got RangeError (float Inf out of range of integer)
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:72:in `block (4 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:71:in `each'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:71:in `block (3 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/civil_spec.rb:5:in `<top (required)>'

8)
Date#gregorian? marks a day before the calendar reform as Julian FAILED
Expected true
 to equal false

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/gregorian_spec.rb:8:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/gregorian_spec.rb:4:in `<top (required)>'

9)
Date#gregorian? marks a day after the calendar reform as Julian FAILED
Expected false
 to equal true

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/gregorian_spec.rb:13:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/gregorian_spec.rb:4:in `<top (required)>'

10)
Date#julian? should mark a day before the calendar reform as Julian FAILED
Expected false
 to equal true

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/julian_spec.rb:20:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/julian_spec.rb:16:in `<top (required)>'

11)
Date#julian? should mark a day after the calendar reform as Julian FAILED
Expected true
 to equal false

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/julian_spec.rb:25:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/julian_spec.rb:16:in `<top (required)>'

12)
Date#new creats a Date for different calendar reform dates FAILED
Expected 2
 to equal 20

/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:61:in `block (2 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/new_spec.rb:5:in `<top (required)>'

13)
Date#new doesn't blow up (illegal instruction and segfault, respectively) when fed huge numbers FAILED
Expected FloatDomainError but got RangeError (float Inf out of range of integer)
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:72:in `block (4 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:71:in `each'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/shared/civil.rb:71:in `block (3 levels) in <top (required)>'
/usr/home/chkbuild/build/ruby-trunk/20110604T110102Z/rubyspec/library/date/new_spec.rb:5:in `<top (required)>'


-- 
http://redmine.ruby-lang.org