mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor: use bool to represent boolean values
This commit is contained in:
@@ -617,15 +617,15 @@ describe('path.c', function()
|
||||
end
|
||||
|
||||
itp('returns true if filename starts with a slash', function()
|
||||
eq(OK, path_is_absolute('/some/directory/'))
|
||||
eq(true, path_is_absolute('/some/directory/'))
|
||||
end)
|
||||
|
||||
itp('returns true if filename starts with a tilde', function()
|
||||
eq(OK, path_is_absolute('~/in/my/home~/directory'))
|
||||
eq(true, path_is_absolute('~/in/my/home~/directory'))
|
||||
end)
|
||||
|
||||
itp('returns false if filename starts not with slash nor tilde', function()
|
||||
eq(FAIL, path_is_absolute('not/in/my/home~/directory'))
|
||||
eq(false, path_is_absolute('not/in/my/home~/directory'))
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user