summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-27 16:01:17 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-27 16:01:17 -0700
commite86f1a64f7e905442d331b242ad4fe60eafe49a6 (patch)
tree59ba6cf8615a803d9f4374afa2904eb6e517fa16 /test
parente01fc9ede64a82bcd1fc60ba5aba6c02e892e2f6 (diff)
downloadpsych-e86f1a64f7e905442d331b242ad4fe60eafe49a6.zip
mapping start tested
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_parser.rb6
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