File: encodeurl.svtest

package info (click to toggle)
dovecot 1%3A2.3.4.1-5%2Bdeb10u6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 48,648 kB
  • sloc: ansic: 500,433; makefile: 7,372; sh: 5,592; cpp: 1,555; perl: 303; python: 73; xml: 44; pascal: 27
file content (11 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
require "vnd.dovecot.testsuite";
require "variables";
require "enotify";

test "Encode Simple" {
	set :encodeurl "url_data" "\\frop\\&fruts/^@";

	if not string :is :comparator "i;octet" "${url_data}" "%5Cfrop%5C%26fruts%2F%5E%40" {
		test_fail "url data encoded incorrectly '${url_data}'";
	}
}