summaryrefslogtreecommitdiff
path: root/test/psych/test_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_parser.rb')
-rw-r--r--test/psych/test_parser.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb
index 90c19b2..4ab7860 100644
--- a/test/psych/test_parser.rb
+++ b/test/psych/test_parser.rb
@@ -30,7 +30,12 @@ module Psych
def test_scalar_with_tag
@parser.parse("---\n!!str foo\n")
- assert_called :scalar, ['tag:yaml.org,2002:str', 'foo']
+ assert_called :scalar, ['foo', 'tag:yaml.org,2002:str']
+ end
+
+ def test_scalar_with_anchor
+ @parser.parse("---\n&A foo\n")
+ assert_called :scalar, ['foo', 'A']
end
def test_alias