diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-19 08:49:51 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-19 08:49:51 +0000 |
| commit | 9aadfd6aed07a9f3beab563e2be04c4b0936aaae (patch) | |
| tree | bc25f8876b4bfad8f73e1f2c171fe5750c9dc343 /test | |
| parent | efca107ad6ac2762bf614ed51addef66b563438d (diff) | |
| download | ruby-9aadfd6aed07a9f3beab563e2be04c4b0936aaae.tar.gz ruby-9aadfd6aed07a9f3beab563e2be04c4b0936aaae.tar.xz ruby-9aadfd6aed07a9f3beab563e2be04c4b0936aaae.zip | |
* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value
out of range of Time. [ruby-core:19919]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/yaml/test_yaml.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index ed94705fc..837f34722 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -1306,6 +1306,10 @@ EOY raise "id collision in ordered map" if omap.to_yaml =~ /id\d+/ end + def test_date_out_of_range + assert_nothing_raised{YAML::load('1900-01-01T00:00:00+00:00')} + end + def test_normal_exit YAML.load("2000-01-01 00:00:00.#{"0"*1000} +00:00\n") # '[ruby-core:13735]' |
