chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split out dcgi_get_cookie
[disorder]
/
lib
/
t-filepart.c
diff --git
a/lib/t-filepart.c
b/lib/t-filepart.c
index 1bf55f34f6fa8f221fc2addb858cfc641bba98e7..d2e741b4c009365f038d53915fb47e4511576fcf 100644
(file)
--- a/
lib/t-filepart.c
+++ b/
lib/t-filepart.c
@@
-1,3
+1,4
@@
+
/*
* This file is part of DisOrder.
* Copyright (C) 2005, 2007, 2008 Richard Kettlewell
/*
* This file is part of DisOrder.
* Copyright (C) 2005, 2007, 2008 Richard Kettlewell
@@
-19,8
+20,7
@@
*/
#include "test.h"
*/
#include "test.h"
-void test_filepart(void) {
- fprintf(stderr, "test_filepart\n");
+static void test_filepart(void) {
check_string(d_dirname("/"), "/");
check_string(d_dirname("////"), "/");
check_string(d_dirname("/spong"), "/");
check_string(d_dirname("/"), "/");
check_string(d_dirname("////"), "/");
check_string(d_dirname("/spong"), "/");
@@
-47,6
+47,8
@@
void test_filepart(void) {
check_string(strip_extension("foo.bar/wibble.spong"), "foo.bar/wibble");
}
check_string(strip_extension("foo.bar/wibble.spong"), "foo.bar/wibble");
}
+TEST(filepart);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2