diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 22:55:09 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 22:55:09 +0000 |
commit | 212f40c0c5a7c368769e77567f289782ad375e0a (patch) | |
tree | 20b0e1270251af2ad32743b7657bd4f5744657e1 /test/yaml | |
parent | 5a1b9ee26183a7b67d085c136d28693164ef4f21 (diff) | |
download | ruby-212f40c0c5a7c368769e77567f289782ad375e0a.tar.gz ruby-212f40c0c5a7c368769e77567f289782ad375e0a.tar.xz ruby-212f40c0c5a7c368769e77567f289782ad375e0a.zip |
* ext/syck/bytecode.c: turn off default implicit typing.
* ext/syck/implicit.c: detect base60 integers.
* ext/syck/rubyext.c: handle base60, as well as hex and octal
with commas. implicit typing of ruby symbols.
* test/yaml/test_yaml.rb: add test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/yaml')
-rw-r--r-- | test/yaml/test_yaml.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 6ddde2065..674ecf888 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -442,6 +442,14 @@ octal: 014 hexadecimal: 0xC EOY ) + assert_parse_only( + { 'canonical' => 685230, 'decimal' => 685230, 'octal' => '02472256'.oct, 'hexadecimal' => '0x0A74AE'.hex, 'sexagesimal' => 685230 }, <<EOY +canonical: 685230 +decimal: +685,230 +octal: 02472256 +hexadecimal: 0x0A,74,AE +sexagesimal: 190:20:30 +EOY end def test_spec_type_float |