summary refs log tree commit diff
path: root/pkgs/lib/tests.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 18:08:35 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 18:08:35 -0400
commit37159c1b9a0ec77306866c539fbcd7b0e230f2d9 (patch)
tree4bc7b3ce91ffdca4db75967fecb574848d12261f /pkgs/lib/tests.nix
parent503b4fd5bfd2a516ebd61870d2e09970b56ff41a (diff)
downloadnixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar.gz
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar.bz2
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar.lz
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar.xz
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.tar.zst
nixpkgs-37159c1b9a0ec77306866c539fbcd7b0e230f2d9.zip
Remove obsolete eqStrict function
Use the "==" operator instead.
Diffstat (limited to 'pkgs/lib/tests.nix')
-rw-r--r--pkgs/lib/tests.nix29
1 files changed, 8 insertions, 21 deletions
diff --git a/pkgs/lib/tests.nix b/pkgs/lib/tests.nix
index 646de7c0e49..835298ddb9e 100644
--- a/pkgs/lib/tests.nix
+++ b/pkgs/lib/tests.nix
@@ -50,19 +50,6 @@ runTests {
     expected = 5050;
   };
 
-  testEqStrict = {
-    expr = all id [
-      (eqStrict 2 2)
-      (!eqStrict 3 2)
-      (eqStrict [2 1] [2 1])
-      (!eqStrict [1 3] [1 2])
-      (eqStrict {a = 7; b = 20;} {b= 20; a = 7;})
-      (eqStrict [{a = 7; b = 20;}] [{b= 20; a = 7;}])
-      (eqStrict {a = [7 8]; b = 20;} {b= 20; a = [7 8];})
-    ];
-    expected = true;
-  };
-
   testTake = testAllTrue [
     ([] == (take 0 [  1 2 3 ]))
     ([1] == (take 1 [  1 2 3 ]))
@@ -99,14 +86,14 @@ runTests {
                 in (y.merge) { b = 10; };
           strip = attrs : removeAttrs attrs ["merge" "replace"];
       in all id
-        [ (eqStrict (strip res1) { })
-          (eqStrict (strip res2) { a = 7; })
-          (eqStrict (strip res3) { a = 7; b = 10; })
-          (eqStrict (strip res4) { a = 7; b = 10; })
-          (eqStrict (strip res5) { a = 10; })
-          (eqStrict (strip res6) { a = 17; })
-          (eqStrict (strip resRem7) {})
-          (eqStrict (strip resFixed1) { a = 7; b = 10; c =10; name = "name-10"; })
+        [ ((strip res1) == { })
+          ((strip res2) == { a = 7; })
+          ((strip res3) == { a = 7; b = 10; })
+          ((strip res4) == { a = 7; b = 10; })
+          ((strip res5) == { a = 10; })
+          ((strip res6) == { a = 17; })
+          ((strip resRem7) == {})
+          ((strip resFixed1) == { a = 7; b = 10; c =10; name = "name-10"; })
         ];
     expected = true;
   };