mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature - #352 rc file should support includes
- Added include file support to Config.cpp. - Implemented isAbsolutePath helper. - Added unit tests for isAbsolutePath. - Fixed small bug in bug.bulk.t. - Added TODO items to config.t.cpp.
This commit is contained in:
parent
8d43a35ca4
commit
0780919c2e
8 changed files with 64 additions and 4 deletions
|
@ -34,7 +34,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (67);
|
||||
UnitTest t (74);
|
||||
|
||||
// TODO bool confirm (const std::string&);
|
||||
// TODO int confirm3 (const std::string&);
|
||||
|
@ -113,6 +113,15 @@ int main (int argc, char** argv)
|
|||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue