From c9168cce80e6c507e41b34cbf55ee026e28b01ec Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 23 Oct 2024 04:02:19 +0200 Subject: [PATCH] Add 2 unit tests for URL Follow 7dbb459b55642f48c99bc2e5b806ef7a6e971881 --- PowerEditor/Test/UrlDetection/verifyUrlDetection_1a | 5 +++++ .../Test/UrlDetection/verifyUrlDetection_1a.expected.result | 2 ++ 2 files changed, 7 insertions(+) diff --git a/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a b/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a index 938a1d8f6..cdc58cd69 100644 --- a/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a +++ b/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a @@ -149,6 +149,11 @@ m 0111111111111111111111111111111111111111111100000000000000000000000000 m u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u m 1111111111111111111111111111111111111111111111111111111111111111111111111 m +u https://example.com/#/app/0?context u +m 11111111111111111111111111111111111 m + +u https://example.com#/example/app/0?context u +m 111111111111111111111111111111111111111111 m Space detection: diff --git a/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result b/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result index ff4500e6b..56966b337 100644 --- a/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result +++ b/PowerEditor/Test/UrlDetection/verifyUrlDetection_1a.expected.result @@ -45,6 +45,8 @@ OK u "https://duckduckgo.com/?q=windows+delete+"GameBarPresenceWriter.exe" u OK u "https://duckduckgo/com/?q=windows+delete+GameBarPresenceWriter.exe" u OK u "https://duckduckgo.com/?q=windows+delete+""GameBarPresenceWriter.exe" u OK u https://www.youtube.com/watch?v=VmcftreqQ6E&list=PnQIRE5O5JpiLL&index=xxx u +OK u https://example.com/#/app/0?context u +OK u https://example.com#/example/app/0?context u OK u "http://github.com/notepad-plus-plus/notepad-plus-plus" u OK u "https://github.com /notepad-plus-plus/notepad-plus-plus" u OK u "https://github.com/notepad plus plus/notepad-plus-plus" u