src: Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-08 16:06:29 +09:00
parent af960f1982
commit 8c90e5314d
1 changed files with 3 additions and 2 deletions

View File

@ -518,7 +518,8 @@ void test_http2_path_join(void) {
sizeof(rel) - 1, nullptr, 0)); sizeof(rel) - 1, nullptr, 0));
} }
{ {
// rel is relative // rel is relative and base ends without /, which means it refers
// to file.
const char base[] = "/alpha"; const char base[] = "/alpha";
const char rel[] = "bravo/charlie"; const char rel[] = "bravo/charlie";
CU_ASSERT("/bravo/charlie" == CU_ASSERT("/bravo/charlie" ==
@ -594,7 +595,7 @@ void test_http2_path_join(void) {
sizeof(rel) - 1, nullptr, 0)); sizeof(rel) - 1, nullptr, 0));
} }
{ {
// '.' is ignored // trailing '.' is ignored
const char base[] = "/"; const char base[] = "/";
const char rel[] = "charlie/."; const char rel[] = "charlie/.";
CU_ASSERT("/charlie/" == http2::path_join(base, sizeof(base) - 1, nullptr, CU_ASSERT("/charlie/" == http2::path_join(base, sizeof(base) - 1, nullptr,