[M] Move tests

This commit is contained in:
2026-05-07 18:27:38 +00:00
parent 17e3961267
commit 7fc3ab32ad
17 changed files with 305 additions and 299 deletions
+13
View File
@@ -0,0 +1,13 @@
use super::*;
#[test]
fn repo_prefix_pads_and_truncates_to_fixed_width() {
assert_eq!(repo_prefix("api", 6), "api ");
assert_eq!(repo_prefix("very-long-repo", 8), "very-lo~");
}
#[test]
fn status_text_truncates_to_fixed_width() {
assert_eq!(truncate_status("short", 8), "short");
assert_eq!(truncate_status("very-long-status", 8), "very-lo~");
}