MCPcopy
hub / github.com/keon/algorithms / test_simplify_path

Method test_simplify_path

tests/test_stack.py:71–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 self.assertFalse(is_valid("(}"))
70
71 def test_simplify_path(self):
72 p = "/my/name/is/..//keon"
73 self.assertEqual("/my/name/keon", simplify_path(p))
74
75
76class TestStack(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

simplify_pathFunction · 0.90

Tested by

no test coverage detected