package liveauctioneers

import "testing"

func Test_catIDPayload_String(t *testing.T) {
	tests := []struct {
		name string
		cip  LACatalogIDs
		want string
	}{
		{
			name: "happy path",
			cip:  LACatalogIDs{283257, 283882, 284163},
			want: "{\"ids\":[283257,283882,284163]}",
		},
		{
			name: "no items",
			cip:  LACatalogIDs{},
			want: "{\"ids\":[]}",
		},
	}

	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := tt.cip.String(); got != tt.want {
				t.Errorf("catIDPayload.String() = %v, want %v", got, tt.want)
			}
		})
	}
}
