mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-14 19:16:40 +00:00
Freezes the working tree as a fixed baseline: static gates green (1551 lib tests, clippy -D warnings, fmt, release 0.4.7), live-verified E1/E2 fixes, notification/harness work pending e2e acceptance. Known-open: hover fixture churn to back out, 3 e2e failures (hover oracle, AE6 sheet, sheet cancel), NT1-NT4 unproven.
16 lines
480 B
Rust
16 lines
480 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn bounded_text_truncates_on_character_boundaries() {
|
|
let output = bounded_text("aé日z", 3);
|
|
|
|
assert!(output.starts_with("aé日…"));
|
|
assert!(output.contains("7 bytes total"));
|
|
}
|
|
|
|
#[test]
|
|
fn token_labels_show_only_small_identifier_shaped_values() {
|
|
assert_eq!(token_label("set-value"), "'set-value'");
|
|
assert_eq!(token_label("secret value"), "token of 12 bytes");
|
|
assert_eq!(token_label(&"x".repeat(65)), "token of 65 bytes");
|
|
}
|