- Add dirname() test. Don't have time to create a real regression test

This commit is contained in:
Andi Gutmans 2000-10-03 16:48:48 +00:00
parent a1abfb7643
commit 897b701dee

16
tests/testdirname Normal file
View File

@ -0,0 +1,16 @@
<?
function check_dirname($path)
{
print "dirname($path) == " . dirname($path) . "\n";
}
check_dirname("/foo/");
check_dirname("/foo");
check_dirname("/foo/bar");
check_dirname("d:\\foo\\bar.inc");
check_dirname("/");
check_dirname(".../foo");
check_dirname("./foo");
check_dirname("foobar///");
check_dirname("c:\foo");