Update rules/rules_test.go

Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
Tiger Nie 2020-11-19 01:13:27 +08:00 committed by GitHub
parent b78665b46b
commit c2ccb1075f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,8 @@ func TestMatchHidden(t *testing.T) {
for path, want := range cases {
got := MatchHidden(path)
if got != truth {
t.Errorf("MatchHidden(%s)=%v; want %v", path, got, truth)
if got != want {
t.Errorf("MatchHidden(%s)=%v; want %v", path, got, want)
}
}
}