You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertContains "Verify whether 'wcurl' chooses the correct default filename when there's no path in the URL""${ret}"'index.html'
120
+
}
121
+
122
+
testUrlDefaultNameTrailingSlash()
123
+
{
124
+
url='example%20with%20spaces.com/'
125
+
ret=$(${WCURL_CMD}${url}2>&1)
126
+
assertContains "Verify whether 'wcurl' chooses the correct default filename when there's no path in the URL and the URl ends with a slash""${ret}"'index.html'
127
+
}
128
+
129
+
testUrlDecodingWhitespaces()
130
+
{
131
+
url='example.com/filename%20with%20spaces'
132
+
ret=$(${WCURL_CMD}${url}2>&1)
133
+
assertContains "Verify whether 'wcurl' successfully decodes percent-encoded whitespaces in URLs""${ret}"'filename with spaces'
134
+
}
135
+
136
+
testUrlDecodingWhitespacesTwoFiles()
137
+
{
138
+
url='example.com/filename%20with%20spaces'
139
+
url_2='example.com/filename2%20with%20spaces'
140
+
ret=$(${WCURL_CMD}${url}${url_2}2>&1)
141
+
assertContains "Verify whether 'wcurl' successfully decodes percent-encoded whitespaces in URLs""${ret}"'filename with spaces'
142
+
assertContains "Verify whether 'wcurl' successfully decodes percent-encoded whitespaces in URLs""${ret}"'filename2 with spaces'
0 commit comments