mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-17 00:07:49 +02:00
15 lines
209 B
Go
15 lines
209 B
Go
package array
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestUniq(t *testing.T) {
|
|
data := From(1, 2, 3, 2, 4, 1)
|
|
|
|
uniq := StrictUniq(data)
|
|
assert.Equal(t, From(1, 2, 3, 4), uniq)
|
|
}
|