Skip to content

Commit d0e1fd5

Browse files
committed
format XTVERSION test
1 parent 9eb0f6f commit d0e1fd5

File tree

1 file changed

+8
-2
lines changed
  • rio-backend/src/crosswords

1 file changed

+8
-2
lines changed

rio-backend/src/crosswords/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3971,13 +3971,19 @@ mod tests {
39713971
RioEvent::PtyWrite(text) => {
39723972
// Expected format: DCS > | Rio {version} ST
39733973
// DCS = \x1bP, ST = \x1b\\
3974-
assert!(text.starts_with("\x1bP>|Rio "), "Should start with DCS>|Rio");
3974+
assert!(
3975+
text.starts_with("\x1bP>|Rio "),
3976+
"Should start with DCS>|Rio"
3977+
);
39753978
assert!(text.ends_with("\x1b\\"), "Should end with ST");
39763979

39773980
// Extract version from the response
39783981
let version = env!("CARGO_PKG_VERSION");
39793982
let expected = format!("\x1bP>|Rio {}\x1b\\", version);
3980-
assert_eq!(text, &expected, "XTVERSION response should match expected format");
3983+
assert_eq!(
3984+
text, &expected,
3985+
"XTVERSION response should match expected format"
3986+
);
39813987
}
39823988
other => panic!("Expected PtyWrite event, got {:?}", other),
39833989
}

0 commit comments

Comments
 (0)