Branch: Tag:

1997-08-27

1997-08-27 02:39:18 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

combine_path() now handles relative paths

Rev: src/builtin_functions.c:1.40
Rev: src/testsuite.in:1.47

1: - test_true([["$Id: testsuite.in,v 1.46 1997/08/26 22:29:18 grubba Exp $"]]) + test_true([["$Id: testsuite.in,v 1.47 1997/08/27 02:39:18 hubbe Exp $"]])   test_eq(1e1,10.0)   test_eq(1E1,10.0)   test_eq(1e+1,10.0)
1467:   test_eq([[combine_path("/","/foo/bar/./gazonk/../../..")]],"/")   test_eq([[combine_path("/","/foo/../bar//./gazonk/../..")]],"/")   test_eq([[combine_path("/","/foo/././/bar/gazonk/../../../..")]],"/") + test_eq([[combine_path("/","..")]],"/") + test_eq([[combine_path("./","..")]],"..") + test_eq([[combine_path("./.","..")]],"..") + test_eq([[combine_path("./foobar/.","..")]],".")      // - compile_file   // FIXME: add tests for compile_file