diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2024-08-29 23:06:50 +0200 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2024-08-29 23:06:50 +0200 |
| commit | 655610ec879de4dd56cb3a7f58925f18471c93d2 (patch) | |
| tree | d3d2593bd195e2bf60311c6515cd970a8434bdac | |
| parent | a28d574272c1deb294f5ec8a30eeb6581601a71a (diff) | |
Satisfy vet
| -rw-r--r-- | tests/core/odin/test_file_tags.odin | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/core/odin/test_file_tags.odin b/tests/core/odin/test_file_tags.odin index b2b378c9d..4af1afc75 100644 --- a/tests/core/odin/test_file_tags.odin +++ b/tests/core/odin/test_file_tags.odin @@ -3,7 +3,6 @@ package test_core_odin_parser import "base:runtime" import "core:testing" import "core:slice" -import "core:log" import "core:odin/ast" import "core:odin/parser" @@ -100,14 +99,14 @@ package main }, } - for test_case, i in test_cases { + for test_case, test_case_i in test_cases { file := ast.File{ fullpath = "test.odin", src = test_case.src, } - p := parser.default_parser() + p := parser.default_parser() ok := parser.parse_file(&p, &file) testing.expect(t, ok, "bad parse") @@ -124,33 +123,33 @@ package main } testing.expectf(t, build_project_name_the_same, "[%d] file_tags.build_project_name expected:\n%#v, got:\n%#v", - i, test_case.tags.build_project_name, tags.build_project_name) + test_case_i, test_case.tags.build_project_name, tags.build_project_name) testing.expectf(t, slice.equal(test_case.tags.build, tags.build), "[%d] file_tags.build expected:\n%#v, got:\n%#v", - i, test_case.tags.build, tags.build) + test_case_i, test_case.tags.build, tags.build) testing.expectf(t, test_case.tags.private == tags.private, "[%d] file_tags.private expected:\n%v, got:\n%v", - i, test_case.tags.private, tags.private) + test_case_i, test_case.tags.private, tags.private) testing.expectf(t, test_case.tags.ignore == tags.ignore, "[%d] file_tags.ignore expected:\n%v, got:\n%v", - i, test_case.tags.ignore, tags.ignore) + test_case_i, test_case.tags.ignore, tags.ignore) testing.expectf(t, test_case.tags.lazy == tags.lazy, "[%d] file_tags.lazy expected:\n%v, got:\n%v", - i, test_case.tags.lazy, tags.lazy) + test_case_i, test_case.tags.lazy, tags.lazy) testing.expectf(t, test_case.tags.no_instrumentation == tags.no_instrumentation, "[%d] file_tags.no_instrumentation expected:\n%v, got:\n%v", - i, test_case.tags.no_instrumentation, tags.no_instrumentation) + test_case_i, test_case.tags.no_instrumentation, tags.no_instrumentation) for target in test_case.matching_targets { matches := parser.match_build_tags(test_case.tags, target.target) testing.expectf(t, matches == target.result, "[%d] Expected parser.match_build_tags(%#v) == %v, got %v", - i, target.target, target.result, matches) + test_case_i, target.target, target.result, matches) } } } |