File: uniq.go

package info (click to toggle)
golang-github-xtgo-set 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: makefile: 2
file content (28 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2015 Kevin Gillette. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package testdata

type UniqTest struct {
	In, Out []int
}

var UniqTests = []UniqTest{
	{
		In:  nil,
		Out: nil,
	},
	{
		In:  []int{0, 1, 2, 3, 4, 5},
		Out: []int{0, 1, 2, 3, 4, 5},
	},
	{
		In:  []int{0, 0, 1, 2, 3, 3},
		Out: []int{0, 1, 2, 3},
	},
	{
		In:  []int{0, 1, 1, 1, 1, 2},
		Out: []int{0, 1, 2},
	},
}