Add unit test case

Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
pull/8299/head
ZouYu 4 years ago
parent e09e8604e6
commit 9249530b77

@ -56,6 +56,9 @@ func TestEqual(t *testing.T) {
{"/foo", "/foo", true},
{"/foo", "/foo/", true},
{"/foo/.", "/foo/", true},
{"%/1234", "%/1234", true},
{"%/1234", "%/123", false},
{"/1234", "%/1234", false},
} {
if tt.match != Equal(tt.a, tt.b) {
t.Errorf("Expected %q==%q to be %t", tt.a, tt.b, tt.match)

Loading…
Cancel
Save