Преглед на файлове

Add a new test case for path::basename

Daniele Bartolini преди 13 години
родител
ревизия
227f58ab51
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      tests/paths.cpp

+ 3 - 1
tests/paths.cpp

@@ -43,7 +43,6 @@ int main()
 	
 	// Test basename
 	path::basename("/home/project/texture.tga", path_output, 128);
-	printf("%s\n", path_output);
 	assert(string::strcmp("texture", path_output) == 0);
 	
 	path::basename("/home/project/textureabc", path_output, 128);
@@ -52,6 +51,9 @@ int main()
 	path::basename("/hom.e/proj./e.ct/textu.reabc", path_output, 128);
 	assert(string::strcmp("textu", path_output) == 0);
 	
+	path::basename("texture.tga", path_output, 128);
+	assert(string::strcmp("texture", path_output) == 0);
+	
 	path::basename("/home", path_output, 128);
 	assert(string::strcmp("home", path_output) == 0);