mirror of
https://gitlab.cern.ch/wotsubo/psboard-qaqc-postprocess.git
synced 2025-07-12 14:39:29 +09:00
update: Strict ordering for outpu (use BTreeMap instead of HashMap)
This commit is contained in:
parent
c4dd4161c7
commit
bdb415e6e6
3 changed files with 68 additions and 24 deletions
15
tests/cli.rs
15
tests/cli.rs
|
@ -1,5 +1,9 @@
|
|||
mod integrated_test {
|
||||
use std::path::PathBuf;
|
||||
use std::{
|
||||
fs::File,
|
||||
io::{BufRead, BufReader},
|
||||
path::PathBuf,
|
||||
};
|
||||
|
||||
use anyhow::Result;
|
||||
use assert_cmd::{assert::OutputAssertExt, Command};
|
||||
|
@ -19,6 +23,15 @@ mod integrated_test {
|
|||
.success()
|
||||
.stdout(predicate::str::contains("Creating new file"));
|
||||
|
||||
// check output
|
||||
{
|
||||
let f = File::open(test_out.clone())?;
|
||||
let r = BufReader::new(f);
|
||||
assert!(r
|
||||
.lines()
|
||||
.any(|line| { line.unwrap().contains("8868,,A-0-1,0,1,1,0,1,8,1,") }));
|
||||
}
|
||||
|
||||
// 2nd file
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
cmd.current_dir("tests")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue