14 lines
222 B
Go
14 lines
222 B
Go
|
package tunnel
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestDedup(t *testing.T) {
|
||
|
expected := []string{"a", "b"}
|
||
|
actual := dedup([]string{"a", "b", "a"})
|
||
|
require.Equal(t, expected, actual)
|
||
|
}
|