11 lines
234 B
Rust
11 lines
234 B
Rust
|
|
use std;
|
|
import std::fs;
|
|
|
|
fn test_connect() {
|
|
auto slash = fs::path_sep();
|
|
assert (fs::connect("a", "b") == "a" + slash + "b");
|
|
assert (fs::connect("a" + slash, "b") == "a" + slash + "b");
|
|
}
|
|
|
|
fn main() { test_connect(); } |