From 919b0ab0fd8c13485e55eba3fe4d2da0a2d4bae4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 16 Jan 2011 13:49:11 +0100 Subject: [PATCH] Expect magic_uri to encode spaces as %20 --- tests/magic-uri.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/magic-uri.c b/tests/magic-uri.c index 07c00cb2..2f7f4ed6 100644 --- a/tests/magic-uri.c +++ b/tests/magic-uri.c @@ -161,8 +161,8 @@ static void magic_uri_search (void) { test_input ("sm midori", SM "midori"); - test_input ("sm cats dogs", SM "cats dogs"); - test_input ("se cats dogs", SM "cats dogs"); + test_input ("sm cats dogs", SM "cats%20dogs"); + test_input ("se cats dogs", SM "cats%20dogs"); test_input ("dict midori", NULL); test_input ("cats", NULL); test_input ("cats dogs", NULL); @@ -185,9 +185,9 @@ magic_uri_search (void) test_input ("de.po verbose", NULL); test_input ("verbose de.po", NULL); test_input ("g de.po verbose", NULL); - test_input ("sm de.po verbose", SM "de.po verbose"); + test_input ("sm de.po verbose", SM "de.po%20verbose"); test_input ("sm warning: configure /dev/net: virtual", - SM "warning: configure /dev/net: virtual"); + SM "warning:%20configure%20/dev/net:%20virtual"); test_input ("g \"ISO 9001:2000 certified\"", NULL); test_input ("g conference \"April 2, 7:00 am\"", NULL); test_input ("max@mustermann.de", NULL); -- 2.39.5