From 2999ab114e3e122ed3be44dc72e069e66a087de6 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 30 Mar 2022 11:20:44 +0200 Subject: lib.sanitizeDerivationName: Test with unicode --- lib/tests/misc.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/tests') diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 2711190313956..47f7315123410 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -649,6 +649,11 @@ runTests { expected = "foo"; }; + testSanitizeDerivationNameUnicode = testSanitizeDerivationName { + name = "fö"; + expected = "f-"; + }; + testSanitizeDerivationNameAscii = testSanitizeDerivationName { name = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; expected = "-+--.-0123456789-=-?-ABCDEFGHIJKLMNOPQRSTUVWXYZ-_-abcdefghijklmnopqrstuvwxyz-"; -- cgit 1.4.1