Enhancement - Path, File, Directory integration
- Replaced all access calls. - Replaced all stat calls. - Obsoleted util.cpp isAbsoluteDirectory calls. - Obsoleted util.cpp expandPath calls.
This commit is contained in:
@@ -34,7 +34,7 @@ Context context;
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (439);
|
||||
UnitTest t (430);
|
||||
|
||||
// TODO bool confirm (const std::string&);
|
||||
// TODO int confirm3 (const std::string&);
|
||||
@@ -514,19 +514,6 @@ int main (int argc, char** argv)
|
||||
|
||||
// TODO const std::string uuid ();
|
||||
|
||||
// std::string expandPath (const std::string&);
|
||||
t.ok (expandPath ("foo") == "foo", "expandPath nop");
|
||||
t.ok (expandPath ("~/") != "~/", "expandPath ~/");
|
||||
t.ok (expandPath ("~") != "~", "expandPath ~");
|
||||
|
||||
// bool isAbsolutePath (const std::string&);
|
||||
t.notok (isAbsolutePath ("."), "isAbsolutePath .");
|
||||
t.notok (isAbsolutePath ("~"), "isAbsolutePath ~");
|
||||
t.ok (isAbsolutePath (expandPath ("~")), "isAbsolutePath (expandPath ~)");
|
||||
t.ok (isAbsolutePath (expandPath ("~/")), "isAbsolutePath (expandPath ~/)");
|
||||
t.ok (isAbsolutePath ("/"), "isAbsolutePath /");
|
||||
t.ok (isAbsolutePath ("/tmp"), "isAbsolutePath /tmp");
|
||||
|
||||
// TODO bool slurp (const std::string&, std::vector <std::string>&, bool trimLines = false);
|
||||
// TODO bool slurp (const std::string&, std::string&, bool trimLines = false);
|
||||
// TODO void spit (const std::string&, const std::string&);
|
||||
|
||||
Reference in New Issue
Block a user