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

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+8 −0
Diff settings

Always

Just for now

@@ -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('~')