From f5445b579396d2a0c6aebcd8d90e69b36c7400fc Mon Sep 17 00:00:00 2001 From: yuyi Date: Mon, 23 Dec 2024 15:03:41 +0800 Subject: [PATCH] checker: move test files to tests directory (cleanup) (#23243) --- vlib/v/checker/for_in_same_var_err.out | 47 ------------------- vlib/v/checker/tests/for_in_same_var_err.out | 47 +++++++++++++++++++ .../{ => tests}/for_in_same_var_err.vv | 0 3 files changed, 47 insertions(+), 47 deletions(-) delete mode 100644 vlib/v/checker/for_in_same_var_err.out create mode 100644 vlib/v/checker/tests/for_in_same_var_err.out rename vlib/v/checker/{ => tests}/for_in_same_var_err.vv (100%) diff --git a/vlib/v/checker/for_in_same_var_err.out b/vlib/v/checker/for_in_same_var_err.out deleted file mode 100644 index bc070af5204eb8..00000000000000 --- a/vlib/v/checker/for_in_same_var_err.out +++ /dev/null @@ -1,47 +0,0 @@ -vlib/v/checker/for_in_same_var_err.vv:1:10: error: in a `for x in ` loop, the key or value iteration variable `x` can not be the same as the low variable - 1 | for x in x .. 10 { - | ^ - 2 | dump(x) - 3 | } -vlib/v/checker/for_in_same_var_err.vv:5:15: error: in a `for x in ` loop, the key or value iteration variable `y` can not be the same as the high variable - 3 | } - 4 | - 5 | for y in 0 .. y { - | ^ - 6 | dump(y) - 7 | } -vlib/v/checker/for_in_same_var_err.vv:9:10: error: in a `for x in ` loop, the key or value iteration variable `z` can not be the same as the low variable - 7 | } - 8 | - 9 | for z in z .. z { - | ^ - 10 | dump(z) - 11 | } -vlib/v/checker/for_in_same_var_err.vv:13:10: error: in a `for x in array` loop, the key or value iteration variable `w` can not be the same as the low variable - 11 | } - 12 | - 13 | for w in w { - | ^ - 14 | dump(w) - 15 | } -vlib/v/checker/for_in_same_var_err.vv:14:7: error: dump expression can not be void - 12 | - 13 | for w in w { - 14 | dump(w) - | ^ - 15 | } - 16 | -vlib/v/checker/for_in_same_var_err.vv:17:13: error: in a `for x in array` loop, the key or value iteration variable `_` can not be the same as the low variable - 15 | } - 16 | - 17 | for k, _ in k { - | ^ - 18 | dump(k) - 19 | } -vlib/v/checker/for_in_same_var_err.vv:17:13: error: for in: cannot index `int` - 15 | } - 16 | - 17 | for k, _ in k { - | ^ - 18 | dump(k) - 19 | } diff --git a/vlib/v/checker/tests/for_in_same_var_err.out b/vlib/v/checker/tests/for_in_same_var_err.out new file mode 100644 index 00000000000000..537232a52ed4a9 --- /dev/null +++ b/vlib/v/checker/tests/for_in_same_var_err.out @@ -0,0 +1,47 @@ +vlib/v/checker/tests/for_in_same_var_err.vv:1:10: error: in a `for x in ` loop, the key or value iteration variable `x` can not be the same as the low variable + 1 | for x in x .. 10 { + | ^ + 2 | dump(x) + 3 | } +vlib/v/checker/tests/for_in_same_var_err.vv:5:15: error: in a `for x in ` loop, the key or value iteration variable `y` can not be the same as the high variable + 3 | } + 4 | + 5 | for y in 0 .. y { + | ^ + 6 | dump(y) + 7 | } +vlib/v/checker/tests/for_in_same_var_err.vv:9:10: error: in a `for x in ` loop, the key or value iteration variable `z` can not be the same as the low variable + 7 | } + 8 | + 9 | for z in z .. z { + | ^ + 10 | dump(z) + 11 | } +vlib/v/checker/tests/for_in_same_var_err.vv:13:10: error: in a `for x in array` loop, the key or value iteration variable `w` can not be the same as the low variable + 11 | } + 12 | + 13 | for w in w { + | ^ + 14 | dump(w) + 15 | } +vlib/v/checker/tests/for_in_same_var_err.vv:14:7: error: dump expression can not be void + 12 | + 13 | for w in w { + 14 | dump(w) + | ^ + 15 | } + 16 | +vlib/v/checker/tests/for_in_same_var_err.vv:17:13: error: in a `for x in array` loop, the key or value iteration variable `_` can not be the same as the low variable + 15 | } + 16 | + 17 | for k, _ in k { + | ^ + 18 | dump(k) + 19 | } +vlib/v/checker/tests/for_in_same_var_err.vv:17:13: error: for in: cannot index `int` + 15 | } + 16 | + 17 | for k, _ in k { + | ^ + 18 | dump(k) + 19 | } diff --git a/vlib/v/checker/for_in_same_var_err.vv b/vlib/v/checker/tests/for_in_same_var_err.vv similarity index 100% rename from vlib/v/checker/for_in_same_var_err.vv rename to vlib/v/checker/tests/for_in_same_var_err.vv