diff options
author | Alexandr Opak <opak.alexandr@gmail.com> | 2021-01-29 14:10:04 +0100 |
---|---|---|
committer | Alexandr Opak <opak.alexandr@gmail.com> | 2021-01-29 14:10:04 +0100 |
commit | 8f71222bf3c73f910da467e75d4c7231005bc8b0 (patch) | |
tree | c47d86c50b80873d1ce9c587014ed07aaf5c40ea /test | |
parent | ebb0cbded12f12670a870998151fba3c099fc997 (diff) | |
download | psych-8f71222bf3c73f910da467e75d4c7231005bc8b0.tar.gz |
add more tests
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_scalar_scanner.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb index c17fd17..2cd129e 100644 --- a/test/psych/test_scalar_scanner.rb +++ b/test/psych/test_scalar_scanner.rb @@ -111,11 +111,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 |