public void OJ071_SimplifyPathTest3() { string result = new OJ071_SimplifyPath().SimplifyPath("/../"); Assert.AreEqual("/", result); }
public void OJ071_SimplifyPathTest4() { string result = new OJ071_SimplifyPath().SimplifyPath("/home//foo/"); Assert.AreEqual("/home/foo", result); }
public void OJ071_SimplifyPathTest2() { string result = new OJ071_SimplifyPath().SimplifyPath("/a/./b/../../c/"); Assert.AreEqual("/c", result); }