Files
ascend-docker-runtime/hook/main_test.go
2020-05-27 21:57:46 +08:00

21 lines
410 B
Go

/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
* Description: hook main 函数单元测试
*/
package main
import (
"reflect"
"testing"
)
func TestRemoveDuplication(t *testing.T) {
originList := []int {1,2,2,4,5,5,5,6,8,8}
targetList := []int {1,2,4,5,6,8}
resultList := removeDuplication(originList)
if !reflect.DeepEqual(resultList, targetList) {
t.Fail()
}
}