+2
-8
pkgs/build-support/testers/testEqualArrayOrMap/assert-equal-array.sh
+2
-8
pkgs/build-support/testers/testEqualArrayOrMap/assert-equal-array.sh
······
+8
-19
pkgs/build-support/testers/testEqualArrayOrMap/assert-equal-map.sh
+8
-19
pkgs/build-support/testers/testEqualArrayOrMap/assert-equal-map.sh
······-nixErrorLog "first arugment expectedMapRef must be an associative array reference to a declared associative array"-nixErrorLog "second arugment actualMapRef must be an associative array reference to a declared associative array"-# From the `sort` manpage: "The locale specified by the environment affects sort order. Set LC_ALL=C to get the-# We specify the environment variable in a subshell to avoid polluting the caller's environment.-mapfile -d '' -t sortedExpectedKeys < <(printf '%s\0' "${!expectedMapRef[@]}" | LC_ALL=C sort --stable --zero-terminated)-mapfile -d '' -t sortedActualKeys < <(printf '%s\0' "${!actualMapRef[@]}" | LC_ALL=C sort --stable --zero-terminated)···nixErrorLog "maps differ in length: expectedMap has length $expectedLength but actualMap has length $actualLength"
+4
pkgs/build-support/testers/testEqualArrayOrMap/default.nix
+4
pkgs/build-support/testers/testEqualArrayOrMap/default.nix