File: failure.rs

package info (click to toggle)
rust-assert-cmd 2.0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 208 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#[allow(clippy::wildcard_imports)] // false positive
use assert_cmd::prelude::*;

use std::process::Command;

fn main() {
    Command::new("ls")
        .args(["non-existent"])
        .assert()
        .code(&[3, 42] as &[i32]);
}