mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-19 00:17:48 +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)
|
||
|
}
|