mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-07 08:41:00 +08:00
16 lines
254 B
Go
16 lines
254 B
Go
package main
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestRemoveDuplication(t *testing.T) {
|
|
originList := []int {1,2,2,4,5,5,5,6,8,8}
|
|
resultList := removeDuplication(originList)
|
|
|
|
if !reflect.DeepEqual(resultList, []int {1,2,4,5,6,8}) {
|
|
t.Fail()
|
|
}
|
|
}
|