chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bodge version number for test installs
[disorder]
/
lib
/
t-url.c
diff --git
a/lib/t-url.c
b/lib/t-url.c
index 89fb3457369e1679ec888986766cab4435235f6e..aa83940529e006bd9171c0c142a244b3d5021337 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