Lines Matching refs:output
45 std::string output;
46 ASSERT_TRUE(normalize_path("/../root///dir/.///dir2/somedir/../zipfile!/dir/dir9//..///afile", &output));
47 ASSERT_EQ("/root/dir/dir2/zipfile!/dir/afile", output);
49 ASSERT_TRUE(normalize_path("/../root///dir/.///dir2/somedir/.../zipfile!/.dir/dir9//..///afile", &output));
50 ASSERT_EQ("/root/dir/dir2/somedir/.../zipfile!/.dir/afile", output);
52 ASSERT_TRUE(normalize_path("/root/..", &output));
53 ASSERT_EQ("/", output);
55 ASSERT_TRUE(normalize_path("/root/notroot/..", &output));
56 ASSERT_EQ("/root/", output);
58 ASSERT_TRUE(normalize_path("/a/../../b", &output));
59 ASSERT_EQ("/b", output);
61 output = "unchanged";
62 ASSERT_FALSE(normalize_path("root///dir/.///dir2/somedir/../zipfile!/dir/dir9//..///afile", &output));
63 ASSERT_EQ("unchanged", output);