diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-28 10:44:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-28 10:44:01 -0700 |
commit | 5cc91271b400d58a8ca188aa91d2d2f765bf6e3b (patch) | |
tree | c84428987c47064f2bb642113fded271f48e9160 /test | |
parent | 2cd98a2f5a82028e56afee424375315cd684d02f (diff) | |
download | psych-5cc91271b400d58a8ca188aa91d2d2f765bf6e3b.zip |
* 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
fixes #156
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_string.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb index 0bdba18..2512bb6 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 --- |