diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 74020bc7c8e5..8e0cf1f45bb6 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -312,6 +312,21 @@ runTests { expected = true; }; + testNormalizePath = { + expr = strings.normalizePath "//a/b//c////d/"; + expected = "/a/b/c/d/"; + }; + + testCharToInt = { + expr = strings.charToInt "A"; + expected = 65; + }; + + testEscapeC = { + expr = strings.escapeC [ " " ] "Hello World"; + expected = "Hello\\x20World"; + }; + # LISTS testFilter = {