Skip to content

Tests for "1.".to_yaml (#109) #110

Closed
wants to merge 1 commit into from
View
8 test/psych/test_scalar_scanner.rb
@@ -73,6 +73,14 @@ def test_scan_nan
assert ss.tokenize('.nan').nan?
end
+ def test_scan_num_dot
+ assert_equal("1.", ss.tokenize("1."))
+ end
+
+ def test_scan_negative_dot
+ assert_equal("-.", ss.tokenize("-."))
+ end
+
def test_scan_null
assert_equal nil, ss.tokenize('null')
assert_equal nil, ss.tokenize('~')
Something went wrong with that request. Please try again.