[all] Fix newline in version string
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use std::str::from_utf8;
|
||||
use thinp::file_utils;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -12,14 +12,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_restore!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_restore!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user