lib/tests/modules/types-attrTag: Test against unexpected attrs
Thank you lheckemann for pointing this out!
This commit is contained in:
parent
fa8b46adf4
commit
bcd774606a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user