diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-02-04 17:31:40 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-04-04 11:54:46 +0200 |
commit | bcd774606a257fd6f14bda50effac67474005447 (patch) | |
tree | cf0be966ee43bc29b770044e6754dbef20d04d32 /lib | |
parent | fa8b46adf467eec196da8808d62c9e03d69caa37 (diff) | |
download | nixlib-bcd774606a257fd6f14bda50effac67474005447.tar nixlib-bcd774606a257fd6f14bda50effac67474005447.tar.gz nixlib-bcd774606a257fd6f14bda50effac67474005447.tar.bz2 nixlib-bcd774606a257fd6f14bda50effac67474005447.tar.lz nixlib-bcd774606a257fd6f14bda50effac67474005447.tar.xz nixlib-bcd774606a257fd6f14bda50effac67474005447.tar.zst nixlib-bcd774606a257fd6f14bda50effac67474005447.zip |
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 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.<name>.foo.bar".type == "signed integer"; assert config.docs."submodules.<name>.qux".type == "string"; |