From bcd774606a257fd6f14bda50effac67474005447 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 4 Feb 2024 17:31:40 +0100 Subject: [PATCH] lib/tests/modules/types-attrTag: Test against unexpected attrs Thank you lheckemann for pointing this out! --- lib/tests/modules/types-attrTag.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/tests/modules/types-attrTag.nix b/lib/tests/modules/types-attrTag.nix index 43d71b3ae6ad..7825cfe203fb 100644 --- a/lib/tests/modules/types-attrTag.nix +++ b/lib/tests/modules/types-attrTag.nix @@ -98,12 +98,12 @@ in merged.extensi-foo.extensible = "foo"; merged.extensi-bar.extensible = "bar"; okChecks = - assert config.intStrings.hello.right == "hello world"; - assert config.intStrings.numberOne.left == 1; - assert config.merged.negative.nay == false; - assert config.merged.positive.yay == 100; - assert config.merged.extensi-foo.extensible == "foo"; - assert config.merged.extensi-bar.extensible == "bar"; + assert config.intStrings.hello == { right = "hello world"; }; + assert config.intStrings.numberOne == { left = 1; }; + assert config.merged.negative == { nay = false; }; + assert config.merged.positive == { yay = 100; }; + assert config.merged.extensi-foo == { extensible = "foo"; }; + assert config.merged.extensi-bar == { extensible = "bar"; }; # assert lib.foldl' (a: b: builtins.trace b a) true (lib.attrNames config.docs); assert config.docs."submodules..foo.bar".type == "signed integer"; assert config.docs."submodules..qux".type == "string";