zsplit-cli 0.4.0

Split text into multiple files by line
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

#[test]
fn hyphen_as_stdout() {
    assert_eq!(Source::from_os_str("-".as_ref()), Source::StdIn);
}

#[test]
fn path_as_path_buf() {
    let path = "test.txt";
    assert_eq!(
        Source::from_os_str(path.as_ref()),
        Source::PathBuf(PathBuf::from(path))
    );
}