mirror of
https://github.com/denisidoro/navi.git
synced 2026-07-17 16:49:25 +00:00
simplified test for terminal.rs
This commit is contained in:
parent
40bd436afe
commit
feb9fee762
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue