Skip to content

Commit b465b22

Browse files
authored
Update decodequery.c
1 parent 3747732 commit b465b22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/decodequery.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@
1313
#include <string.h>
1414
#include <assert.h>
1515
#include "../source/decodequery.h"
16-
16+
#define DEBUG 1
1717
char *execute(const char *input) {
1818
char *temp=malloc(sizeof(char)*200);
1919
strcpy(temp,input);
2020
decodeUrl(temp,temp);
21+
#if DEBUG
22+
printf("Check> %s\n",temp);
23+
#endif
2124
return temp;
2225
}
2326
int main() {
2427
assert(strcmp(execute("a+b"),"a b") == 0);
2528
assert(strcmp(execute("a+ b"),"a b") == 0);
29+
assert(strcmp(execute("a+%20b "),"a b ") == 0);
2630
return 0;
2731
}

0 commit comments

Comments
 (0)