Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/psych/test_scalar_scanner.rb
Expand Up @@ -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('~')
Expand Down