Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tests for tenderlove#109

  • Loading branch information...
commit d18866fd9b0abc2d5244f4d0d2567df912db3e36 1 parent f22f976
@glebm authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/psych/test_scalar_scanner.rb
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('~')
Please sign in to comment.
Something went wrong with that request. Please try again.