aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/test_stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_stream.rb')
-rw-r--r--test/psych/test_stream.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/psych/test_stream.rb b/test/psych/test_stream.rb
index 9807207661..beca365608 100644
--- a/test/psych/test_stream.rb
+++ b/test/psych/test_stream.rb
@@ -2,6 +2,16 @@ require 'psych/helper'
module Psych
class TestStream < TestCase
+ def test_parse_partial
+ rb = Psych.parse("--- foo\n...\n--- `").to_ruby
+ assert_equal 'foo', rb
+ end
+
+ def test_load_partial
+ rb = Psych.load("--- foo\n...\n--- `")
+ assert_equal 'foo', rb
+ end
+
def test_parse_stream_yields_documents
list = []
Psych.parse_stream("--- foo\n...\n--- bar") do |doc|