2021-03-02 22:16:38 +00:00
|
|
|
package tunnel
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDedup(t *testing.T) {
|
|
|
|
expected := []string{"a", "b"}
|
|
|
|
actual := dedup([]string{"a", "b", "a"})
|
2021-03-10 19:48:59 +00:00
|
|
|
require.ElementsMatch(t, expected, actual)
|
2021-03-02 22:16:38 +00:00
|
|
|
}
|