Commit 6749b1c4 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

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

parent 55261c94
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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