summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_yast_builder.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb
index 0e29f94..02f4c91 100644
--- a/test/visitors/test_yast_builder.rb
+++ b/test/visitors/test_yast_builder.rb
@@ -9,6 +9,12 @@ module Psych
v.accept 'foo'
assert_equal 'foo', Psych.load(v.tree.to_yaml)
+ assert_equal 'foo', Psych.load('foo'.to_yaml)
+ end
+
+ def test_binary
+ string = [0, 123,22, 44, 9, 32, 34, 39].pack('C*')
+ assert_equal string, Psych.load(string.to_yaml)
end
end
end