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
10 lines
110 B
Nix
10 lines
110 B
Nix
{
|
|
|
|
_module.checks.test = {
|
|
enable = false;
|
|
check = false;
|
|
message = "Assertion failed";
|
|
};
|
|
|
|
}
|