From 8b1a21d206a68dfb0aeb5a3b2976fcc875a4e49c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 11:01:34 -0400 Subject: [PATCH] =?UTF-8?q?Test:=20Added=20test=20of=20Path=20expan=D1=95i?= =?UTF-8?q?on=20of=20'~'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/fs.t.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/fs.t.cpp b/test/fs.t.cpp index e277d7105..d5478a7bd 100644 --- a/test/fs.t.cpp +++ b/test/fs.t.cpp @@ -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.");