aboutsummaryrefslogtreecommitdiff
path: root/bin/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests')
-rw-r--r--bin/tests/data/empty_inherit.nix3
-rw-r--r--bin/tests/snapshots/main__empty_inherit.snap13
2 files changed, 16 insertions, 0 deletions
diff --git a/bin/tests/data/empty_inherit.nix b/bin/tests/data/empty_inherit.nix
new file mode 100644
index 0000000..dc31afc
--- /dev/null
+++ b/bin/tests/data/empty_inherit.nix
@@ -0,0 +1,3 @@
1{
2 inherit;
3}
diff --git a/bin/tests/snapshots/main__empty_inherit.snap b/bin/tests/snapshots/main__empty_inherit.snap
new file mode 100644
index 0000000..1d91e0a
--- /dev/null
+++ b/bin/tests/snapshots/main__empty_inherit.snap
@@ -0,0 +1,13 @@
1---
2source: bin/tests/main.rs
3expression: "&out"
4
5---
6[W14] Warning: Found empty inherit statement
7 ╭─[data/empty_inherit.nix:2:3]
8
9 2 │ inherit;
10 · ────┬───
11 · ╰───── Remove this empty inherit statement
12───╯
13