Skip to content

Commit c9f8116

Browse files
authored
fix(code): Use index notation in formatting calls (#9)
1 parent 1f4eb55 commit c9f8116

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

internal/text/transform/spaced_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ func Test_Spaced(t *testing.T) {
3939
actual := hyperspaced.Spaced(testCase.input)
4040
if actual != testCase.expected {
4141
t.Errorf(
42-
"expected %+q (%s), received %+q (%s)",
42+
"expected %+[1]q (%[1]s), received %+[2]q (%[2]s)",
4343
testCase.expected,
44-
testCase.expected,
45-
actual,
4644
actual,
4745
)
4846
}
@@ -76,10 +74,8 @@ func Test_SpacedN(t *testing.T) {
7674
actual := hyperspaced.SpacedN(testCase.inputString, testCase.inputN)
7775
if actual != testCase.expected {
7876
t.Errorf(
79-
"expected %+q (%s), received %+q (%s)",
77+
"expected %+[1]q (%[1]s), received %+[2]q (%[2]s)",
8078
testCase.expected,
81-
testCase.expected,
82-
actual,
8379
actual,
8480
)
8581
}

0 commit comments

Comments
 (0)