From 48602d1dbfe6e17f47704839f1721ee254150694 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Wed, 28 Aug 2013 17:42:38 +0000 Subject: * ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be treated as strings. [Fixes GH-156] https://github.com/tenderlove/psych/issues/156 * test/psych/test_string.rb: test for change git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_string.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb index 0bdba184f3..2512bb6802 100644 --- a/test/psych/test_string.rb +++ b/test/psych/test_string.rb @@ -15,6 +15,11 @@ module Psych end end + def test_dash_dot + assert_cycle '-.' + assert_cycle '+.' + end + def test_string_subclass_with_anchor y = Psych.load <<-eoyml --- -- cgit v1.2.3