~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
act_playing
[disorder]
/
lib
/
t-url.c
diff --git
a/lib/t-url.c
b/lib/t-url.c
index
89fb345
..
aa83940
100644
(file)
--- a/
lib/t-url.c
+++ b/
lib/t-url.c
@@
-19,10
+19,8
@@
*/
#include "test.h"
*/
#include "test.h"
-void test_url(void) {
+
static
void test_url(void) {
struct url p;
struct url p;
-
- printf("test_url\n");
insist(parse_url("http://www.example.com/example/path", &p) == 0);
check_string(p.scheme, "http");
insist(parse_url("http://www.example.com/example/path", &p) == 0);
check_string(p.scheme, "http");
@@
-50,6
+48,8
@@
void test_url(void) {
insist(parse_url("http://www.example.com/example%2zpath", &p) == -1);
}
insist(parse_url("http://www.example.com/example%2zpath", &p) == -1);
}
+TEST(url);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2