diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 16:01:17 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 16:01:17 -0700 |
commit | e86f1a64f7e905442d331b242ad4fe60eafe49a6 (patch) | |
tree | 59ba6cf8615a803d9f4374afa2904eb6e517fa16 /test | |
parent | e01fc9ede64a82bcd1fc60ba5aba6c02e892e2f6 (diff) | |
download | psych-e86f1a64f7e905442d331b242ad4fe60eafe49a6.zip |
mapping start tested
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_parser.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb index 61c2510..7405374 100644 --- a/test/psych/test_parser.rb +++ b/test/psych/test_parser.rb @@ -24,6 +24,12 @@ module Psych @parser = Psych::Parser.new EventCatcher.new end + def test_mapping_start + @parser.parse("---\n{ key: value }") + assert_called :start_mapping + assert_called :start_mapping, [true, FLOW_MAPPING_STYLE] + end + def test_sequence_end @parser.parse("---\n&A [1, 2]") assert_called :end_sequence |