Skip to content

Commit

Permalink
add counter for test case
Browse files Browse the repository at this point in the history
Signed-off-by: D023954 <[email protected]>
  • Loading branch information
klaus-sap committed Dec 11, 2024
1 parent 15c8659 commit d24a8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/namespace/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ func TestSplitIDFromString(t *testing.T) {
},
}

for _, c := range tcases {
for i, c := range tcases {
pre, id := SplitIDFromString(c.input)
if pre != c.prefix || id != c.id {
t.Fatalf("bad test case: %s != %s, %s != %s", pre, c.prefix, id, c.id)
t.Fatalf("bad test case %d: %s != %s, %s != %s", i, pre, c.prefix, id, c.id)
}
}
}
Expand Down

0 comments on commit d24a8ff

Please sign in to comment.