diff --git a/tests/test_immutapath.py b/tests/test_immutapath.py index e2787ae..0a24726 100644 --- a/tests/test_immutapath.py +++ b/tests/test_immutapath.py @@ -127,3 +127,9 @@ def test_home(self): actual = Path("/A/B/C").relpath("/A").home self.assertEqual(excpected, actual) self.assertEqual(excpected.abspath(), actual.abspath()) + + def test_home_root(self): + excpected = Path(".") + actual = Path("/").home + self.assertEqual(excpected, actual) + self.assertEqual(excpected.abspath(), actual.abspath())