--- a/spec/hglib_spec.lua Sun Oct 23 18:04:08 2016 +0800
+++ b/spec/hglib_spec.lua Mon Oct 24 00:41:04 2016 +0800
+ it('can use runcommand_co to request version', function()
+ local client = hglib.Client.open()
+ local co, err = client:runcommand_co({'version'})
+ assert.are_equal('thread', type(co))
+ assert.are_equal('suspended', coroutine.status(co))
+ while coroutine.status(co) ~= 'dead' do
+ local status, channel = coroutine.resume(co)
+ table.insert(channels, channel)
+ assert.are_equal('o', channels[1])
+ assert.are_equal('r', channels[#channels])