lean_ctx/tools/ctx_wrapped.rs
1pub fn handle(period: &str) -> String {
2 let result = crate::tools::ctx_gain::render_wrapped(period, true);
3 format!("[DEPRECATED] Use ctx_gain with action='wrapped'.\n{result}")
4}
5
6#[cfg(test)]
7mod tests {
8 use super::handle;
9
10 #[test]
11 fn wrapped_alias_shows_deprecation_message() {
12 let out = handle("week");
13 assert!(out.contains("[DEPRECATED]"));
14 assert!(out.contains("ctx_gain"));
15 assert!(out.contains("WRAPPED [week]"));
16 }
17}