Merge pull request #8299 from Hellcatlk/UnitTestCase

Add unit test case
pull/8326/head
Matthew Fisher 5 years ago committed by GitHub
commit 67c02d0a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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