Test: Added test of Path expanѕion of '~'
This commit is contained in:
@@ -35,7 +35,7 @@ Context context;
|
|||||||
|
|
||||||
int main (int, char**)
|
int main (int, char**)
|
||||||
{
|
{
|
||||||
UnitTest t (110);
|
UnitTest t (111);
|
||||||
|
|
||||||
// Ensure environment has no influence.
|
// Ensure environment has no influence.
|
||||||
unsetenv ("TASKDATA");
|
unsetenv ("TASKDATA");
|
||||||
@@ -123,6 +123,9 @@ int main (int, char**)
|
|||||||
t.ok (p3.is_absolute (), "/tmp is_absolute");
|
t.ok (p3.is_absolute (), "/tmp is_absolute");
|
||||||
t.ok (p4.is_absolute (), "/a/b/c/file.ext 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");
|
Directory tmp ("tmp");
|
||||||
tmp.create ();
|
tmp.create ();
|
||||||
t.ok (tmp.exists (), "tmp dir created.");
|
t.ok (tmp.exists (), "tmp dir created.");
|
||||||
|
|||||||
Reference in New Issue
Block a user