summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexandr Opak <opak.alexandr@gmail.com>2021-01-29 14:10:04 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:34:28 +0900
commit44353d0dee76a547629a6ab978fdaead9b5f79fb (patch)
tree9c3b4ea90002167b762446f7fc0845a33f38d2db /test
parentbeffa72c27c77603ecc15c60518a55bea4aad3de (diff)
[ruby/psych] add more tests
https://github.com/ruby/psych/commit/8f71222bf3
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_scalar_scanner.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb
index f43d0f1413..cac8b8feb1 100644
--- a/test/psych/test_scalar_scanner.rb
+++ b/test/psych/test_scalar_scanner.rb
@@ -115,11 +115,15 @@ module Psych
end
def test_scan_strings_starting_with_underscores
- assert_equal "_100", ss.tokenize('_100')
+ assert_equal '_100', ss.tokenize('_100')
+ end
+
+ def test_scan_strings_starting_with_number
+ assert_equal '450D', ss.tokenize('450D')
end
def test_scan_strings_ending_with_underscores
- assert_equal "100_", ss.tokenize('100_')
+ assert_equal '100_', ss.tokenize('100_')
end
def test_scan_int_commas_and_underscores