aboutsummaryrefslogtreecommitdiffstats
path: root/test/yaml
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 22:55:09 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 22:55:09 +0000
commit52e0ab245a1c7d446861f8882f741356b4d24bec (patch)
tree20b0e1270251af2ad32743b7657bd4f5744657e1 /test/yaml
parent84c0dcfca25a7d67e45f6585962de38f7854bc2f (diff)
downloadruby-52e0ab245a1c7d446861f8882f741356b4d24bec.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/yaml')
-rw-r--r--test/yaml/test_yaml.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb
index 6ddde2065c..674ecf8888 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