From c2ccb1075f0dfeba6757582a7a85152b38ce406e Mon Sep 17 00:00:00 2001 From: Tiger Nie Date: Thu, 19 Nov 2020 01:13:27 +0800 Subject: [PATCH] Update rules/rules_test.go Co-authored-by: Oleg Lobanov --- rules/rules_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/rules_test.go b/rules/rules_test.go index d4278229..570f921f 100644 --- a/rules/rules_test.go +++ b/rules/rules_test.go @@ -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) } } }