summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-08-28 10:44:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-08-28 10:44:01 -0700
commit5cc91271b400d58a8ca188aa91d2d2f765bf6e3b (patch)
treec84428987c47064f2bb642113fded271f48e9160 /test
parent2cd98a2f5a82028e56afee424375315cd684d02f (diff)
downloadpsych-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.rb5
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
---