0:616025111516
Anton Shestakov <av6@dwimlabs.net>, Wed, 07 Sep 2016 16:07:39 +0800
hglib: absolute basics

next change 2:2038aaa338fb

spec/hglib_spec.lua

Permissions: -rw-r--r--

Other formats: Feeds:
local hglib = require('hglib')
describe('hglib client', function()
it('can read hello', function()
local rh = io.open('spec/data/hello', 'rb')
local client = hglib.Client.connect(rh, nil)
client:read_hello()
rh:close()
assert.is_true(client.capabilities.getencoding)
assert.is_true(client.capabilities.runcommand)
assert.are_equal('UTF-8', client.encoding)
assert.are_equal(3615, client.pid)
assert.are_equal(3615, client.pgid)
end)
end)