diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 09:53:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 09:53:54 -0700 |
commit | 1ecabe15cca7df942f9b3a8684145c5b8e3f0dda (patch) | |
tree | c7cf90d0b02ae0c78debf20892d548d42fd217eb /test/visitors/test_yast_builder.rb | |
parent | 1e1aadba8331c4f0ee607671e491b0eafc270531 (diff) | |
download | psych-1ecabe15cca7df942f9b3a8684145c5b8e3f0dda.zip |
symbol round trip
Diffstat (limited to 'test/visitors/test_yast_builder.rb')
-rw-r--r-- | test/visitors/test_yast_builder.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb index bcf0cd2..91eef1c 100644 --- a/test/visitors/test_yast_builder.rb +++ b/test/visitors/test_yast_builder.rb @@ -10,6 +10,7 @@ module Psych def test_scalar assert_round_trip 'foo' + assert_round_trip ':foo' assert_round_trip '' end @@ -36,6 +37,10 @@ module Psych assert_round_trip(%w{ a b }) end + def test_symbol + assert_round_trip :foo + end + # http://yaml.org/type/null.html def test_nil assert_round_trip nil |