mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-22 11:08:20 +00:00
List check utils.
This commit is contained in:
1 parent
0151af17c7
commit
f58db85edf
2 files changed
+39
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
. "launchpad.net/gocheck"
|
||||
)
|
||||
|
||||
type ListSuite struct {
|
||||
}
|
||||
|
||||
func (s *ListSuite) TestStringsIsSubset(c *C) {
|
||||
err := StringsIsSubset([]string{"a", "b"}, []string{"a", "b", "c"}, "[%s]")
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
err = StringsIsSubset([]string{"b", "a"}, []string{"b", "c"}, "[%s]")
|
||||
c.Assert(err, ErrorMatches, "[a]")
|
||||
}
|
||||
Reference in new issue
Block a user