Fix failing tests

This commit is contained in:
Greg 2019-12-17 00:00:15 -05:00
parent b13315bdbd
commit 68d50a7df0
No known key found for this signature in database
GPG key ID: 2E44FAEEDC94B1E2

View file

@ -1,6 +1,6 @@
use anyhow::Result;
use assert_cmd::prelude::*;
use std::{io::prelude::*, process::Command};
use assert_cmd::Command;
use std::io::prelude::*;
fn sd() -> Command {
Command::cargo_bin(env!("CARGO_PKG_NAME")).expect("Error invoking sd")
@ -43,8 +43,7 @@ fn replace_into_stdout() -> Result<()> {
#[test]
fn stdin() -> Result<()> {
sd().args(&["abc\\d+", ""])
.with_stdin()
.buffer("abc123def")
.write_stdin("abc123def")
.assert()
.success()
.stdout("def");