Test: Added test of Path expanѕion of '~'

This commit is contained in:
Paul Beckingham 2015-10-28 11:01:34 -04:00
parent c7f3371429
commit 8b1a21d206

View file

@ -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.");