diff --git a/crates/tui/src/main.rs b/crates/tui/src/main.rs index 178b06f1..1459f3b7 100644 --- a/crates/tui/src/main.rs +++ b/crates/tui/src/main.rs @@ -3721,11 +3721,6 @@ mod speech_cli_tests { PathBuf::from("audio").join(default_speech_output_name("pcm")), PathBuf::from("audio").join("speech.pcm16") ); - assert_eq!( - Some(PathBuf::from("custom.wav")) - .unwrap_or_else(|| PathBuf::from(default_speech_output_name("mp3"))), - PathBuf::from("custom.wav") - ); } #[test] diff --git a/crates/tui/tests/cache_guard.rs b/crates/tui/tests/cache_guard.rs index 6dacffd6..0be7b202 100644 --- a/crates/tui/tests/cache_guard.rs +++ b/crates/tui/tests/cache_guard.rs @@ -131,7 +131,7 @@ fn tool_loop_body(turn: usize, with_reasoning: bool) -> Vec { } else { "" }; - let tool_name = if turn % 2 == 0 { + let tool_name = if turn.is_multiple_of(2) { "read_file" } else { "write_file" @@ -301,7 +301,7 @@ fn compaction_must_cause_at_least_one_miss() { // Post-compaction: system prompt is truncated/changed. format!("You are a helpful assistant.\n\nUser: turn {turn}\nAssistant:") }; - cache.submit(&body.as_bytes()); + cache.submit(body.as_bytes()); } // After compaction, there should be at least one significant miss.