lib/tests/modules/types-attrTag: Test against unexpected attrs

Thank you lheckemann for pointing this out!
This commit is contained in:
Robert Hensing 2024-02-04 17:31:40 +01:00
parent fa8b46adf4
commit bcd774606a
1 changed files with 6 additions and 6 deletions

View File

@ -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";