diff options
author | Akshay <[email protected]> | 2022-02-20 04:07:32 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-02-20 04:07:32 +0000 |
commit | e8130a90dca048d195603281f72e1af0b4f7ccc6 (patch) | |
tree | 7b722cfc3dcf16417f73ba1577f824782903ad2e /bin/tests/data/bool_simplification.nix | |
parent | a80e252193096f22ae79fa03e66a0853ddae050e (diff) |
new lint: bool_simplification
TODO: add more patterns to this
Diffstat (limited to 'bin/tests/data/bool_simplification.nix')
-rw-r--r-- | bin/tests/data/bool_simplification.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/tests/data/bool_simplification.nix b/bin/tests/data/bool_simplification.nix new file mode 100644 index 0000000..64c2c7a --- /dev/null +++ b/bin/tests/data/bool_simplification.nix | |||
@@ -0,0 +1,7 @@ | |||
1 | let | ||
2 | _ = !(a == b); | ||
3 | # do not match here | ||
4 | _ = !(a != b); | ||
5 | _ = a != b; | ||
6 | in | ||
7 | null | ||