From f40aecdce758d3dd54fee89a39090482243c415f Mon Sep 17 00:00:00 2001 From: Anton Yuzhaninov Date: Tue, 14 Jan 2020 16:31:13 +0000 Subject: [PATCH] [Test] Add a test case for URL parsing Currently it fails because fragment is not extracted correctly. --- test/lua/unit/url.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index 894c3156e..e4baf5b6d 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -56,6 +56,9 @@ context("URL check functions", function() end cases = { + {'http://example.net/?arg=%23#fragment', true, { + host = 'example.net', fragment = 'fragment' + }}, {"http:/\\[::eeee:192.168.0.1]/#test", true, { host = '::eeee:c0a8:1', fragment = 'test' }}, -- 2.39.5