From cc3f5024e845bd5e01c29a8a8a628e36133428ab Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 16 May 2014 14:42:05 +0800 Subject: [PATCH] test case for not_found --- tests/test_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_tree.c b/tests/test_tree.c index c0c693b..3f3cf9e 100644 --- a/tests/test_tree.c +++ b/tests/test_tree.c @@ -87,6 +87,9 @@ START_TEST (test_compile) m = rnode_match( n , "/foo/xxx", strlen("/foo/xxx") ); fail_if( NULL == m ); + + m = rnode_match( n , "/not_found", strlen("/not_found") ); + fail_if( NULL == m ); // should be the node of "/" } END_TEST