Skip to content

Commit

Permalink
fix more Date#to_s discrepancies in Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Schmidt committed Nov 30, 2009
1 parent a7ce6e2 commit fdc804d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test-yaml-parser.yaml
Expand Up @@ -1148,7 +1148,7 @@ input: |
- :sym
expected*:
ruby: |
["abc", 123, 3.14, true, false, true, false, nil, nil, "123", "456", #<Date: 4906743/2,0,2299161>, :sym]
["abc", 123, 3.14, true, false, true, false, nil, nil, "123", "456", #<Date: 2005-01-01 (4906743/2,0,2299161)>, :sym]
# ruby: |
# ["abc",
# 123,
Expand Down Expand Up @@ -1200,7 +1200,8 @@ expected*:
{nil=>nil},
{"123"=>"123"},
{"456"=>"456"},
{#<Date: 4906743/2,0,2299161>=>#<Date: 4906743/2,0,2299161>},
{#<Date: 2005-01-01 (4906743/2,0,2299161)>=>
#<Date: 2005-01-01 (4906743/2,0,2299161)>},
{:sym=>:sym}]
java: |
[{"abc"=>"ABC"}, {123=>123}, {3.14=>3.14}, {true=>true}, {false=>false}, {true=>true}, {false=>false}, "~ : ~", {nil=>nil}, {"123"=>"123"}, {"456"=>"456"}, {Tue Feb 01 00:00:00 JST 2005=>Tue Feb 01 00:00:00 JST 2005}, {":sym"=>":sym"}]
Expand Down

0 comments on commit fdc804d

Please sign in to comment.