mirror of
https://github.com/larksuite/cli.git
synced 2026-07-08 02:00:19 +08:00
20 lines
448 B
Go
20 lines
448 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package task
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestContains(t *testing.T) {
|
|
convey.Convey("contains", t, func() {
|
|
list := []string{"a", "b", "c"}
|
|
convey.So(contains(list, "a"), convey.ShouldBeTrue)
|
|
convey.So(contains(list, "d"), convey.ShouldBeFalse)
|
|
convey.So(contains([]string{}, "a"), convey.ShouldBeFalse)
|
|
})
|
|
}
|