mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: handle single-char hostname (#6939)
This commit is contained in:
committed by
Justin M. Keyes
parent
fcbc7a8db4
commit
57d691e81a
@@ -8,7 +8,7 @@ describe('hostname()', function()
|
||||
|
||||
it('returns hostname string', function()
|
||||
local actual = call('hostname')
|
||||
ok(string.len(actual) > 1)
|
||||
ok(string.len(actual) > 0)
|
||||
if call('executable', 'hostname') == 1 then
|
||||
local expected = string.gsub(call('system', 'hostname'), '[\n\r]', '')
|
||||
helpers.eq(expected, actual)
|
||||
|
||||
Reference in New Issue
Block a user