Skip to content

Commit

Permalink
Merge pull request boombuler#37 from logic/intrune-tests
Browse files Browse the repository at this point in the history
Correct a few format string issues
  • Loading branch information
boombuler authored Mar 15, 2018
2 parents 5a7395f + 8a3bb0c commit 3c06908
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/runeint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "testing"

func Test_RuneToIntIntToRune(t *testing.T) {
if IntToRune(0) != '0' {
t.Errorf("failed IntToRune(0) returned %d", string(IntToRune(0)))
t.Errorf("failed IntToRune(0) returned %d", IntToRune(0))
}
if IntToRune(9) != '9' {
t.Errorf("failed IntToRune(9) returned %d", IntToRune(9))
Expand All @@ -13,12 +13,12 @@ func Test_RuneToIntIntToRune(t *testing.T) {
t.Errorf("failed IntToRune(10) returned %d", IntToRune(10))
}
if RuneToInt('0') != 0 {
t.Error("failed RuneToInt('0') returned %d", RuneToInt(0))
t.Errorf("failed RuneToInt('0') returned %d", RuneToInt(0))
}
if RuneToInt('9') != 9 {
t.Error("failed RuneToInt('9') returned %d", RuneToInt(9))
t.Errorf("failed RuneToInt('9') returned %d", RuneToInt(9))
}
if RuneToInt('F') != -1 {
t.Error("failed RuneToInt('F') returned %d", RuneToInt('F'))
t.Errorf("failed RuneToInt('F') returned %d", RuneToInt('F'))
}
}

0 comments on commit 3c06908

Please sign in to comment.