Skip to content

Commit

Permalink
Fix the unused variable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rheof committed Dec 4, 2024
1 parent 5dfc248 commit ce51b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/strings/test_core_strings.odin
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ test_index_multi_overlapping_substrs :: proc(t: ^testing.T) {

@test
test_index_multi_not_found :: proc(t: ^testing.T) {
index, width := strings.index_multi("some example text", {"ey", "tey"})
index, _ := strings.index_multi("some example text", {"ey", "tey"})
testing.expect_value(t, index, -1)
}

@test
test_index_multi_with_empty_string :: proc(t: ^testing.T) {
index, width := strings.index_multi("some example text", {"ex", ""})
index, _ := strings.index_multi("some example text", {"ex", ""})
testing.expect_value(t, index, -1)
}

Expand Down

0 comments on commit ce51b79

Please sign in to comment.