mirror of
https://gitlab.cern.ch/wotsubo/psboard-qaqc-postprocess.git
synced 2025-07-02 01:29:28 +09:00
update: master log (position fixed)
- A -> B - 0-origin -> 1-origin
This commit is contained in:
parent
84d321ec30
commit
e20c029684
5 changed files with 59 additions and 36 deletions
25
src/main.rs
25
src/main.rs
|
@ -364,6 +364,30 @@ mod test {
|
|||
patch: 2
|
||||
}
|
||||
);
|
||||
assert_eq!(
|
||||
Position::from_str("B-1-4").unwrap(),
|
||||
Position {
|
||||
major: PositionLayer::B,
|
||||
minor: 1,
|
||||
patch: 4
|
||||
}
|
||||
);
|
||||
assert_eq!(
|
||||
Position::from_str("B-0-9").unwrap(),
|
||||
Position {
|
||||
major: PositionLayer::B,
|
||||
minor: 0,
|
||||
patch: 9
|
||||
}
|
||||
);
|
||||
assert_ne!(
|
||||
Position::from_str("B-1-4").unwrap(),
|
||||
Position {
|
||||
major: PositionLayer::B,
|
||||
minor: 0,
|
||||
patch: 2
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -372,7 +396,6 @@ mod test {
|
|||
assert!(DateTime::parse_from_str("Date: 2024-06-20T08:42:01+0000", "Date: %+").is_ok());
|
||||
}
|
||||
|
||||
|
||||
// #[test]
|
||||
// fn parse_file() {
|
||||
// let logfile = r"""""";
|
||||
|
|
|
@ -198,9 +198,9 @@ impl MasterLogResult {
|
|||
|
||||
// Origin is different (-1)
|
||||
let pos = Position {
|
||||
major: PositionLayer::A,
|
||||
major: PositionLayer::B,
|
||||
minor: station_minor,
|
||||
patch: station_id - 1,
|
||||
patch: station_id,
|
||||
};
|
||||
debug!("pos from table {}", pos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue