blob: 85accb0f4139d47a31817f0f182e5b9f98e56293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative "../utils"
using BinaryString
class StreamUtilsTest < Test::Unit::TestCase
def test_stream_promise
open_new_stream { |stream|
push_stream = stream.promise([])
assert(push_stream.id % 2 == 0)
assert(push_stream.id > stream.id)
assert_equal(stream, push_stream.parent)
assert_includes(stream.children, push_stream)
}
end
end
|