mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test of Path expanѕion of '~'
This commit is contained in:
parent
c7f3371429
commit
8b1a21d206
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,7 @@ Context context;
|
|||
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (110);
|
||||
UnitTest t (111);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
|
@ -123,6 +123,9 @@ int main (int, char**)
|
|||
t.ok (p3.is_absolute (), "/tmp is_absolute");
|
||||
t.ok (p4.is_absolute (), "/a/b/c/file.ext is_absolute");
|
||||
|
||||
Path p5 ("~/file.ext");
|
||||
t.notok (p5.name () == "~/file.ext", "~/file.ext --> ! ~/file.ext");
|
||||
|
||||
Directory tmp ("tmp");
|
||||
tmp.create ();
|
||||
t.ok (tmp.exists (), "tmp dir created.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue