[all] Fix newline in version string
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use duct::cmd;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
|
||||
@@ -12,14 +12,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = cache_check!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = cache_check!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use thinp::file_utils;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
|
||||
@@ -13,14 +13,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_check!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_check!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -10,14 +10,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_delta!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_delta!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -10,14 +10,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_metadata_pack!("-V").read()?;
|
||||
assert!(stdout.contains(TOOLS_VERSION));
|
||||
assert!(stdout.contains(tools_version()));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_metadata_pack!("--version").read()?;
|
||||
assert!(stdout.contains(TOOLS_VERSION));
|
||||
assert!(stdout.contains(tools_version()));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -10,14 +10,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_metadata_unpack!("-V").read()?;
|
||||
assert!(stdout.contains(TOOLS_VERSION));
|
||||
assert!(stdout.contains(tools_version()));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_metadata_unpack!("--version").read()?;
|
||||
assert!(stdout.contains(TOOLS_VERSION));
|
||||
assert!(stdout.contains(tools_version()));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use std::str::from_utf8;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -11,14 +11,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_repair!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_repair!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use thinp::version::TOOLS_VERSION;
|
||||
use thinp::version::tools_version;
|
||||
|
||||
mod common;
|
||||
use common::test_dir::*;
|
||||
@@ -10,14 +10,14 @@ use common::*;
|
||||
#[test]
|
||||
fn accepts_v() -> Result<()> {
|
||||
let stdout = thin_rmap!("-V").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn accepts_version() -> Result<()> {
|
||||
let stdout = thin_rmap!("--version").read()?;
|
||||
assert_eq!(stdout, TOOLS_VERSION);
|
||||
assert_eq!(stdout, tools_version());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user