lib/tests/misc: Add tests for charToInt, escapeC, and normalizePath

This commit is contained in:
Daniel Olsen 2022-06-23 22:46:23 +02:00
parent 3251123a77
commit 23c1754fff

View File

@ -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 = {