lib/tests/misc.nix: move testFix into new category FIXED-POINTS

This commit is contained in:
Yueh-Shun Li 2024-07-06 05:48:32 +00:00
parent 55261c94ad
commit 6749b1c4bc

View File

@ -233,11 +233,6 @@ runTests {
];
};
testFix = {
expr = fix (x: {a = if x ? a then "a" else "b";});
expected = {a = "a";};
};
testComposeExtensions = {
expr = let obj = makeExtensible (self: { foo = self.bar; });
f = self: super: { bar = false; baz = true; };
@ -1237,6 +1232,13 @@ runTests {
attrsToList { someFunc= a: a + 1;}
);
# FIXED-POINTS
testFix = {
expr = fix (x: {a = if x ? a then "a" else "b";});
expected = {a = "a";};
};
# GENERATORS
# these tests assume attributes are converted to lists
# in alphabetical order