relax validity tests to break on slash

Change-Id: I1578a0aa77ee1fc957bb9a93690ed92633d3a65a
This commit is contained in:
sm
2016-06-05 22:41:57 -07:00
parent 295a7c3840
commit 227eb4a551
2 changed files with 22 additions and 1 deletions
+7
View File
@@ -113,6 +113,13 @@ func TestValid(t *testing.T) {
in: "foo/bar/baz",
want: true,
},
{
pkgs: []Package{
{Path: "a/b"},
},
in: "a/bb",
want: true,
},
}
for _, test := range tests {
got := Valid(test.in, test.pkgs)