-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathverify_test.go
More file actions
executable file
·29 lines (22 loc) · 862 Bytes
/
verify_test.go
File metadata and controls
executable file
·29 lines (22 loc) · 862 Bytes
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
package main
import (
"testing"
)
func TestIsSuperSeededBy(t *testing.T) {
result := isSuperSeededBy([]interface{}{1, 2, 3}, [][]interface{}{[]interface{}{-2, 2, 3}})
if !result {
t.Errorf("result was incorrect, got: %t, want: %t.", result, true)
}
result2 := isSuperSeededBy([]interface{}{1, 3, 3}, [][]interface{}{[]interface{}{-2, 2, 3}})
if result2 {
t.Errorf("result was incorrect, got: %t, want: %t.", result2, false)
}
result3 := isSuperSeededBy([]interface{}{1, 3, 3}, [][]interface{}{[]interface{}{-2, 2, 3}, []interface{}{-2, -2, 3}})
if !result3 {
t.Errorf("result was incorrect, got: %t, want: %t.", result3, true)
}
result4 := isSuperSeededBy([]interface{}{1, 3, 2}, [][]interface{}{[]interface{}{-2, 2, 3}, []interface{}{-2, -2, 3}})
if result4 {
t.Errorf("result was incorrect, got: %t, want: %t.", result4, false)
}
}