about summary refs log tree commit diff
path: root/src/test/stdtest/fs.rs
blob: be920418e16a5a91365de79cc612b821f49b34d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

use std;
import std::fs;

#[test]
fn test_connect() {
    let 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");
}

// Issue #712
#[test]
fn test_list_dir_no_invalid_memory_access() { fs::list_dir(~"."); }