From feb9fee762b1440fc5debff1ee1dfdb88eddb4df Mon Sep 17 00:00:00 2001 From: emma31-dev Date: Mon, 13 Apr 2026 12:38:31 +0100 Subject: [PATCH] simplified test for terminal.rs --- src/common/terminal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/terminal.rs b/src/common/terminal.rs index 7b557e0..1f3c2d4 100644 --- a/src/common/terminal.rs +++ b/src/common/terminal.rs @@ -49,8 +49,8 @@ mod tests { use super::*; #[test] - fn test_width_with_shell_out() { - let result = width_with_shell_out().expect("Shell error"); + fn test_width() { + let result = width(); let is_ok = if result == 0 { false } else { true }; assert!(is_ok);