Anton Shestakov <av6@dwimlabs.net>, Wed, 07 Sep 2016 21:15:06 +0800
.luacheckrc: set globals to min+busted for tests, enable error codes
spec/hglib_spec.lua
Permissions: -rw-r--r--
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) 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)