767d80099c
Previously the .enable option was used to encode the condition as well, which lead to some oddness: - In order to encode an assertion, one had to invert it - To disable a check, one had to mkForce it By introducing a separate .check option this is solved because: - It can be used to encode assertions - Disabling is done separately with .enable option, whose default can be overridden without a mkForce
24 lines
395 B
Nix
24 lines
395 B
Nix
{
|
|
|
|
_module.checks = {
|
|
test1 = {
|
|
check = false;
|
|
message = "Assertion 1 failed";
|
|
};
|
|
test2 = {
|
|
check = false;
|
|
message = "Assertion 2 failed";
|
|
};
|
|
test3 = {
|
|
check = false;
|
|
message = "Warning 3 failed";
|
|
type = "warning";
|
|
};
|
|
test4 = {
|
|
check = false;
|
|
message = "Warning 4 failed";
|
|
type = "warning";
|
|
};
|
|
};
|
|
}
|