Large diffs are not rendered by default.

@@ -36,7 +36,6 @@ fn basename(path p) -> path {
fn connect(path pre, path post) -> path {
auto len = str::byte_len(pre);
ret if (pre.(len - 1u) == os_fs::path_sep as u8) {

// Trailing '/'?
pre + post
} else { pre + path_sep() + post };
@@ -313,10 +313,7 @@ fn refcount(str s) -> uint {
if (r == dbg::const_refcount) {
ret r;
} else {
// -2 because calling this function and the native function both
// incremented the refcount.

ret r - 2u;
ret r - 1u;
}
}

@@ -46,10 +46,7 @@ fn refcount[T](array[T] v) -> uint {
if (r == dbg::const_refcount) {
ret r;
} else {
// -2 because calling this function and the native function both
// incremented the refcount.

ret r - 2u;
ret r - 1u;
}
}

@@ -4,6 +4,7 @@ import std::fs;

fn test_connect() {
auto slash = fs::path_sep();
log_err fs::connect("a", "b");
assert (fs::connect("a", "b") == "a" + slash + "b");
assert (fs::connect("a" + slash, "b") == "a" + slash + "b");
}