mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
Fix string search.
This commit is contained in:
1 parent
f58db85edf
commit
247acf819e
2 files changed
+6
-4
No files matched your search
+3
-1
@@ -7,10 +7,12 @@ import (
|
||||
type ListSuite struct {
|
||||
}
|
||||
|
||||
var _ = Suite(&ListSuite{})
|
||||
|
||||
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]")
|
||||
c.Assert(err, ErrorMatches, "\\[a\\]")
|
||||
}
|
||||
Reference in new issue
Block a user