|
@@ -82,7 +82,9 @@ class SwifterTestsHttpRouter: XCTestCase {
|
|
|
XCTAssertNil(router.route(nil, path: "/"))
|
|
XCTAssertNil(router.route(nil, path: "/"))
|
|
|
XCTAssertNil(router.route(nil, path: "/a"))
|
|
XCTAssertNil(router.route(nil, path: "/a"))
|
|
|
XCTAssertNotNil(router.route(nil, path: "/a/b/c/d/e/f/g"))
|
|
XCTAssertNotNil(router.route(nil, path: "/a/b/c/d/e/f/g"))
|
|
|
|
|
+ XCTAssertNotNil(router.route(nil, path: "/a/b/e/f/g"))
|
|
|
XCTAssertNil(router.route(nil, path: "/a/e/f/g"))
|
|
XCTAssertNil(router.route(nil, path: "/a/e/f/g"))
|
|
|
|
|
+ XCTAssertNil(router.route(nil, path: "/a/b/c/f/g"))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func testHttpRouterMultiplePathSegmentWildcardTail() {
|
|
func testHttpRouterMultiplePathSegmentWildcardTail() {
|