forked from mirrors/nixpkgs
lib.sanitizeDerivationName: Test with unicode
This commit is contained in:
parent
342a3c32c9
commit
2999ab114e
|
@ -649,6 +649,11 @@ runTests {
|
||||||
expected = "foo";
|
expected = "foo";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
testSanitizeDerivationNameUnicode = testSanitizeDerivationName {
|
||||||
|
name = "fö";
|
||||||
|
expected = "f-";
|
||||||
|
};
|
||||||
|
|
||||||
testSanitizeDerivationNameAscii = testSanitizeDerivationName {
|
testSanitizeDerivationNameAscii = testSanitizeDerivationName {
|
||||||
name = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
name = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
||||||
expected = "-+--.-0123456789-=-?-ABCDEFGHIJKLMNOPQRSTUVWXYZ-_-abcdefghijklmnopqrstuvwxyz-";
|
expected = "-+--.-0123456789-=-?-ABCDEFGHIJKLMNOPQRSTUVWXYZ-_-abcdefghijklmnopqrstuvwxyz-";
|
||||||
|
|
Loading…
Reference in a new issue