Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
balacode committed May 16, 2019
1 parent 2ed16c0 commit 9d4e950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf_test.go
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------------
// (c) balarabe@protonmail.com License: MIT
// :v: 2019-05-13 20:32:24 89508C one-file-pdf/utest/[pdf_test.go]
// :v: 2019-05-16 16:59:24 B54049 one-file-pdf/utest/[pdf_test.go]
// -----------------------------------------------------------------------------

package pdf
Expand Down Expand Up @@ -4281,7 +4281,7 @@ func tEqual(t *testing.T, got interface{}, want interface{}) bool {
case int, int8, int16, int32, int64,
uint, uint8, uint16, uint32, uint64, uintptr:
return fmt.Sprintf("%d", val)
case float32, float64:
case float64, float32:
s := fmt.Sprintf("%.4f", val)
if strings.Contains(s, ".") {
for strings.HasSuffix(s, "0") {
Expand Down

0 comments on commit 9d4e950

Please sign in to comment.