mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -23,6 +23,8 @@
|
|||
#include "libc/testlib/testlib.h"
|
||||
|
||||
TEST(dirname, test) {
|
||||
EXPECT_STREQ("/usr/lib", dirname(gc(strdup("/usr/lib/foo.bar"))));
|
||||
EXPECT_STREQ("/usr", dirname(gc(strdup("/usr/lib"))));
|
||||
EXPECT_STREQ("/usr", dirname(gc(strdup("/usr/lib"))));
|
||||
EXPECT_STREQ("usr", dirname(gc(strdup("usr/lib"))));
|
||||
EXPECT_STREQ("/", dirname(gc(strdup("/usr/"))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue