summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/urls/data/join-absolute.test7
-rw-r--r--test/urls/data/join-full.test7
-rw-r--r--test/urls/data/join-relative.test7
3 files changed, 21 insertions, 0 deletions
diff --git a/test/urls/data/join-absolute.test b/test/urls/data/join-absolute.test
new file mode 100644
index 0000000..a4279bf
--- /dev/null
+++ b/test/urls/data/join-absolute.test
@@ -0,0 +1,7 @@
+http://hostname.tld:80/path1/file1 /path2/file2
+scheme http
+host hostname.tld
+port 80
+path /path2/file2
+dir /path2/
+file file2
diff --git a/test/urls/data/join-full.test b/test/urls/data/join-full.test
new file mode 100644
index 0000000..4049f59
--- /dev/null
+++ b/test/urls/data/join-full.test
@@ -0,0 +1,7 @@
+http://hostname.tld:80/path1/file1 https://otherhost.tld:81/path2/file2
+scheme https
+host otherhost.tld
+port 81
+path /path2/file2
+dir /path2/
+file file2
diff --git a/test/urls/data/join-relative.test b/test/urls/data/join-relative.test
new file mode 100644
index 0000000..7be9f7d
--- /dev/null
+++ b/test/urls/data/join-relative.test
@@ -0,0 +1,7 @@
+http://hostname.tld:80/path1/file1 file2
+scheme http
+host hostname.tld
+port 80
+path /path1/file2
+dir /path1/
+file file2
OpenPOWER on IntegriCloud