From 6749b1c4bcfe88bdcfdea480ecda17a61e70ecbc Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sat, 6 Jul 2024 05:48:32 +0000 Subject: [PATCH] lib/tests/misc.nix: move testFix into new category FIXED-POINTS --- lib/tests/misc.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 7445c634558c..06df9fb02ec7 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -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