-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdiff_base_test.go
60 lines (55 loc) · 930 Bytes
/
diff_base_test.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//go:build example
// +build example
package example
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestDiffBase(t *testing.T) {
tests := map[string]struct {
actual int
expected DiffBase
}{
"DiffBaseB3": {
actual: 3,
expected: DiffBaseB3,
},
"DiffBaseB4": {
actual: 4,
expected: DiffBaseB4,
},
"DiffBaseB5": {
actual: 5,
expected: DiffBaseB5,
},
"DiffBaseB6": {
actual: 6,
expected: DiffBaseB6,
},
"DiffBaseB7": {
actual: 7,
expected: DiffBaseB7,
},
"DiffBaseB8": {
actual: 8,
expected: DiffBaseB8,
},
"DiffBaseB9": {
actual: 9,
expected: DiffBaseB9,
},
"DiffBaseB10": {
actual: 11,
expected: DiffBaseB10,
},
"DiffBaseB11": {
actual: 43,
expected: DiffBaseB11,
},
}
for name, tc := range tests {
t.Run(name, func(t *testing.T) {
assert.Equal(t, int(tc.expected), tc.actual)
})
}
}