3
0
Fork 0
forked from mirrors/nixpkgs

lib.sanitizeDerivationName: Test with unicode

This commit is contained in:
Robert Hensing 2022-03-30 11:20:44 +02:00
parent 342a3c32c9
commit 2999ab114e

View file

@ -649,6 +649,11 @@ runTests {
expected = "foo";
};
testSanitizeDerivationNameUnicode = testSanitizeDerivationName {
name = "fö";
expected = "f-";
};
testSanitizeDerivationNameAscii = testSanitizeDerivationName {
name = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
expected = "-+--.-0123456789-=-?-ABCDEFGHIJKLMNOPQRSTUVWXYZ-_-abcdefghijklmnopqrstuvwxyz-";