package record

import (
	"reflect"
	"testing"
)

func Test_uniqueStrings(t *testing.T) {
	type args struct {
	}
	tests := []struct {
		name string
		arr  []string
		want []string
	}{
		{arr: []string{}, want: []string{}},
		{arr: nil, want: nil},
		{arr: []string{"a", "b", "a"}, want: []string{"a", "b", "a"}},
		{arr: []string{"a", "a", "a"}, want: []string{"a"}},
		{arr: []string{"a", "b", "b"}, want: []string{"a", "b"}},
		{arr: []string{"a", "a", "b"}, want: []string{"a", "b"}},
		{arr: []string{"a", "b"}, want: []string{"a", "b"}},
		{arr: []string{"a"}, want: []string{"a"}},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := uniqueStrings(tt.arr); !reflect.DeepEqual(got, tt.want) {
				t.Errorf("uniqueStrings() = %v, want %v", got, tt.want)
			}
		})
	}
}
