aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zips_tests.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/zips_tests.py b/tests/zips_tests.py
index 29f7fbf..8d1505f 100644
--- a/tests/zips_tests.py
+++ b/tests/zips_tests.py
@@ -27,4 +27,11 @@ def empty_parts_are_ignored_when_joining_paths():
assert_equal("a", zips.join_path("a", ""))
assert_equal("b", zips.join_path("", "b"))
assert_equal("a/b", zips.join_path("a", "", "b"))
-
+
+
+@istest
+def when_joining_paths_then_absolute_paths_ignore_earlier_paths():
+ assert_equal("/b", zips.join_path("a", "/b"))
+ assert_equal("/b/c", zips.join_path("a", "/b", "c"))
+ assert_equal("/b", zips.join_path("/a", "/b"))
+ assert_equal("/a", zips.join_path("/a"))