blob: 96bacd12372d422d47ad094d4024ab81e9e40289 [file] [log] [blame]
package tjstore
import (
"testing"
"github.com/stretchr/testify/assert"
"go.skia.org/infra/go/testutils/unittest"
)
func TestCombinedPSID_Equal(t *testing.T) {
unittest.SmallTest(t)
assert.True(t, CombinedPSID{
CL: "alpha",
CRS: "beta",
PS: "gamma",
}.Equal(CombinedPSID{
CL: "alpha",
CRS: "beta",
PS: "gamma",
}))
assert.False(t, CombinedPSID{
CL: "alpha",
CRS: "beta",
PS: "alabama",
}.Equal(CombinedPSID{
CL: "alpha",
CRS: "beta",
PS: "gamma",
}))
assert.False(t, CombinedPSID{
CL: "alpha",
CRS: "beta",
PS: "alabama",
}.Equal(CombinedPSID{}))
}