mirror of
https://github.com/uutils/sed.git
synced 2026-06-10 16:14:15 -07:00
adds testing
This commit is contained in:
@@ -24,6 +24,22 @@ fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_version() {
|
||||
let short = new_ucmd!()
|
||||
.arg("-V")
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_str()
|
||||
.to_owned();
|
||||
|
||||
new_ucmd!()
|
||||
.arg("--version")
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_is(short);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_debug() {
|
||||
new_ucmd!().args(&["--debug", ""]).succeeds();
|
||||
|
||||
Reference in New Issue
Block a user