eyra 0.22.0

Rust programs written entirely in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate eyra;

fn main() {
    let _cwd = std::env::current_dir().expect("current directory should exist and be accessible");
    let home = std::env::var_os("HOME").expect("HOME should be present in the environment");
    std::env::set_current_dir(&home).expect("should be able to change to home directory");
    let cwd = std::env::current_dir().expect("home directory should exist and be accessible");
    assert_eq!(
        cwd, home,
        "should be in home directory after set_current_dir"
    );
}