summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-26 23:45:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-26 23:45:42 -0700
commit70467fb3e4611559138d016e61e0388ae1c52a56 (patch)
tree71975e8d71e151d3f21029944adb44c5b286a85e /test
parenta59a8c0fc75f6c0339facdd90302eb352e9d8ea6 (diff)
downloadpsych-70467fb3e4611559138d016e61e0388ae1c52a56.zip
scalar supports anchors
Diffstat (limited to 'test')
-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