Skip to content

Commit

Permalink
fix(code): Use index notation in formatting calls (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jan 1, 2019
1 parent 1f4eb55 commit c9f8116
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/text/transform/spaced_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ func Test_Spaced(t *testing.T) {
actual := hyperspaced.Spaced(testCase.input)
if actual != testCase.expected {
t.Errorf(
"expected %+q (%s), received %+q (%s)",
"expected %+[1]q (%[1]s), received %+[2]q (%[2]s)",
testCase.expected,
testCase.expected,
actual,
actual,
)
}
Expand Down Expand Up @@ -76,10 +74,8 @@ func Test_SpacedN(t *testing.T) {
actual := hyperspaced.SpacedN(testCase.inputString, testCase.inputN)
if actual != testCase.expected {
t.Errorf(
"expected %+q (%s), received %+q (%s)",
"expected %+[1]q (%[1]s), received %+[2]q (%[2]s)",
testCase.expected,
testCase.expected,
actual,
actual,
)
}
Expand Down

0 comments on commit c9f8116

Please sign in to comment.