refactor: use bool to represent boolean values

This commit is contained in:
dundargoc
2023-12-16 22:14:28 +01:00
committed by dundargoc
parent 693aea0e9e
commit 7f6b775b45
49 changed files with 175 additions and 186 deletions

View File

@@ -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)