From d1db668cd62e684420ec44fb5caaecf7a8fb1724 Mon Sep 17 00:00:00 2001 From: yangshangbo <42314632+yangshangbo@users.noreply.github.com> Date: Wed, 16 Apr 2025 09:56:13 +0800 Subject: [PATCH] test: add more test --- hono/test.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hono/test.v b/hono/test.v index 991f6a6..6588ac9 100644 --- a/hono/test.v +++ b/hono/test.v @@ -9,7 +9,9 @@ fn init() { is_match3, reg := match_path_with_regex('/users/123/posts/456/comments', '/users/**') println('reg: ${reg.query}') assert is_match3 == true - is_match4, _ := match_path_with_regex('/article+&9/杨/why-!important#999', '/article+&*/:杨/why-!important#999') + is_match4, _ := match_path_with_regex('/article+&9/article1/why-!important#999', '/article+&*/:article/why-!important#999') assert is_match4 == true + is_match5, _ := match_path_with_regex('/api/aaa/bbb/////888', '/api/**/888') + assert is_match5 == true println('all tests passed') }