diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-02-04 17:31:40 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-05-18 17:50:04 +0200 |
commit | d278ea89dba89041b880646875a5f1d25d0578cc (patch) | |
tree | 2901185f80f9aa0851efba9505812752f4db1c7b /lib | |
parent | fb0e7423cc88e63f5803f42adb663738017e1091 (diff) |
lib/tests/modules/types-attrTag: Test against unexpected attrs
Thank you lheckemann for pointing this out!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tests/modules/types-attrTag.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tests/modules/types-attrTag.nix b/lib/tests/modules/types-attrTag.nix index 43d71b3ae6ad9..7825cfe203fb6 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.<name>.foo.bar".type == "signed integer"; assert config.docs."submodules.<name>.qux".type == "string"; |