test/typeparam/issue48462.dir/main.go
raw| 1 | // Copyright 2021 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package main |
| 6 | |
| 7 | import ( |
| 8 | "fmt" |
| 9 | "reflect" |
| 10 | |
| 11 | "./a" |
| 12 | ) |
| 13 | |
| 14 | func main() { |
| 15 | e := []int{1, 2, 2, 3, 1, 6} |
| 16 | |
| 17 | got := a.Unique(e) |
| 18 | want := []int{1, 2, 3, 6} |
| 19 | if !reflect.DeepEqual(got, want) { |
| 20 | panic(fmt.Sprintf("got %d, want %d", got, want)) |
| 21 | } |
| 22 | |
| 23 | } |