TIL that assert.EqualValues allows one to compare numerals of differing types for equality:

package main

import (
  "testing"

  "github.com/stretchr/testify/assert"
)

func TestFoo(t *testing.T) {
  assert.EqualValues(t, int64(1), uint(1))
  assert.EqualValues(t, int64(1), 1.0)
}

These asserts should both pass.