mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-05 09:00:23 +08:00
16 lines
286 B
Go
16 lines
286 B
Go
package tunnel
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/cloudflare/cloudflared/features"
|
|
)
|
|
|
|
func TestDedup(t *testing.T) {
|
|
expected := []string{"a", "b"}
|
|
actual := features.Dedup([]string{"a", "b", "a"})
|
|
require.ElementsMatch(t, expected, actual)
|
|
}
|