mirror of
https://github.com/cubixle/codekata-golang.git
synced 2026-04-24 23:04:42 +01:00
20201114
This commit is contained in:
@@ -6,6 +6,7 @@ func main() {
|
||||
fmt.Println(isCompliance([]int{2, 3, 3, 2, 4}))
|
||||
fmt.Println(isCompliance([]int{3, 3, 2, 4}))
|
||||
fmt.Println(isCompliance([]int{4, 5, 1, 2}))
|
||||
fmt.Println(isCompliance([]int{5, 1, 2, 3}))
|
||||
}
|
||||
|
||||
func isCompliance(nums []int) bool {
|
||||
|
||||
@@ -21,6 +21,11 @@ func Test_isCompliance(t *testing.T) {
|
||||
args{[]int{4, 2, 1}},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"example_3",
|
||||
args{[]int{5, 1, 2, 3}},
|
||||
true,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user