31 SUBCASE(
"Directory name with no trailing backslash") {
32 PlpDirent dirent(0, 0, 0, 0,
"C:\\Projects",
"foo.txt");
34 std::string name = dirent.
getName();
35 CHECK(name ==
"foo.txt");
39 SUBCASE(
"Directory name with trailing backslash") {
40 PlpDirent dirent(0, 0, 0, 0,
"C:\\Projects\\",
"foo.txt");
42 std::string name = dirent.
getName();
43 CHECK(name ==
"foo.txt");
47 SUBCASE(
"Empty directory name") {
48 PlpDirent dirent(0, 0, 0, 0,
"",
"foo.txt");
50 std::string name = dirent.
getName();
51 CHECK(name ==
"foo.txt");
55 SUBCASE(
"Directory dirent must have trailing backslash") {
58 std::string name = dirent.
getName();
A class, representing a directory entry of the Psion.
std::string getPath() const
const char * getName() const
Retrieve the file name of a directory entry.
bool isDirectory() const
Determine if the directory entry represents a directory.