sq/libsq/core/ioz/checksum/checksum_test.go
Neil O'Toole db55986980
#307: Ingest cache (#354)
- Support for ingest cache, download cache, and progress bars.
2024-01-14 18:45:34 -07:00

20 lines
394 B
Go

package checksum_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/neilotoole/sq/libsq/core/ioz/checksum"
)
func TestSum(t *testing.T) {
got := checksum.Sum(nil)
require.Equal(t, "", got)
got = checksum.Sum([]byte{})
require.Equal(t, "", got)
got = checksum.Sum([]byte("hello world"))
assert.Equal(t, "d4a1185", got)
}