Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: multiple strings to a single Handler #2913

Closed
wants to merge 17 commits into from
Prev Previous commit
Next Next commit
fix format
varshith257 committed Jun 17, 2024
commit 2d34cad890ff4f7345c6d98864b2a9b9f9bd4214
Original file line number Diff line number Diff line change
@@ -402,9 +402,8 @@ object RoutePatternSpec extends ZIOHttpSpec {
def anyOfTests =
suite("anyOf")(
test("anyOf with multiple patterns") {
val routePattern = Method.GET / anyOf("", "index.html", "index.htm")
val routePattern = Method.GET / anyOf("", "index.html", "index.htm")
assertTrue(

routePattern.matches(Method.GET, Path("")),
routePattern.matches(Method.GET, Path("index.html")),
routePattern.matches(Method.GET, Path("index.htm")),