Skip to content
This repository

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

Closed
wants to merge 1 commit into from

1 participant

Gleb Mazovetskiy
Gleb Mazovetskiy

Tests for "1." issue: #109
Oops, forgot about putting this in a topic branch

Gleb Mazovetskiy glebm referenced this pull request from a commit in glebm/psych January 02, 2013
Gleb Mazovetskiy Potential fix for #110 4e56bb4
Gleb Mazovetskiy glebm closed this January 09, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 02, 2013
Gleb Mazovetskiy Tests for tenderlove#109 d18866f
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  test/psych/test_scalar_scanner.rb
8  test/psych/test_scalar_scanner.rb
@@ -73,6 +73,14 @@ def test_scan_nan
73 73
       assert ss.tokenize('.nan').nan?
74 74
     end
75 75
 
  76
+    def test_scan_num_dot
  77
+      assert_equal("1.", ss.tokenize("1."))
  78
+    end
  79
+
  80
+    def test_scan_negative_dot
  81
+      assert_equal("-.", ss.tokenize("-."))
  82
+    end
  83
+
76 84
     def test_scan_null
77 85
       assert_equal nil, ss.tokenize('null')
78 86
       assert_equal nil, ss.tokenize('~')
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.