lib/tests/misc.nix: move testFix into new category FIXED-POINTS
This commit is contained in:
parent
55261c94ad
commit
6749b1c4bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user