Branch: Tag:

2001-06-08

2001-06-08 00:36:01 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

combine_path now handles wide strings, added combine_path_nt and combine_path_unix

Rev: src/builtin_functions.c:1.375
Rev: src/combine_path.h:1.1
Rev: src/testsuite.in:1.422

1: - test_true([["$Id: testsuite.in,v 1.421 2001/06/05 10:13:59 hubbe Exp $"]]); + test_true([["$Id: testsuite.in,v 1.422 2001/06/08 00:36:01 hubbe Exp $"]]);      cond([[all_constants()->_verify_internals]],   [[
6105:   test_eq([[combine_path("./foobar/.","..")]],".")   test_eq([[combine_path("/","foo","bar","gazonk")]],"/foo/bar/gazonk")    + test_eq([[combine_path("/","/foo/bar/ga\11111zonk/../../")]],"/foo/") + test_eq([[combine_path("/","/fo\1111/bar/ga\11111zonk/../../")]],"/fo\1111/") + test_eq([[combine_path("/","/fo\1111/bar/gazonk/../../")]],"/fo\1111/") + test_eq([[combine_path_nt("/","/fo\1111/bar/gazonk/../../")]],"/fo\1111/") + test_eq([[combine_path_unix("/","/fo\1111/bar/gazonk/../../")]],"/fo\1111/") + test_eq([[combine_path_nt("a:/","/fo\1111/bar/gazonk/../../")]],"a:/fo\1111/") +    // - Stdio.append_path   test_eq([[ Stdio.append_path("../foo/", "../bar") ]], "../foo/bar")   test_eq([[ Stdio.append_path("../foo/", "../bar", "../baz") ]], "../foo/bar/baz")