mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
committed by
Justin M. Keyes
parent
16a6f44570
commit
499c9a1553
@@ -1,7 +1,9 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local eq = helpers.eq
|
||||
local ok = helpers.ok
|
||||
local call = helpers.call
|
||||
local clear = helpers.clear
|
||||
local iswin = helpers.iswin
|
||||
|
||||
describe('hostname()', function()
|
||||
before_each(clear)
|
||||
@@ -11,7 +13,8 @@ describe('hostname()', function()
|
||||
ok(string.len(actual) > 0)
|
||||
if call('executable', 'hostname') == 1 then
|
||||
local expected = string.gsub(call('system', 'hostname'), '[\n\r]', '')
|
||||
helpers.eq(expected, actual)
|
||||
eq((iswin() and expected:upper() or expected),
|
||||
(iswin() and actual:upper() or actual))
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user