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

// Testing a few of the path manipuation functions

use std;

import std::fs;
import std::os;

#[test]
fn test() {
    assert (!fs::path_is_absolute("test-path"));

    log(debug, "Current working directory: " + os::getcwd());

    log(debug, fs::make_absolute("test-path"));
    log(debug, fs::make_absolute("/usr/bin"));
}