Skip to content

Commit c95677f

Browse files
senamakelmedullabot
andcommitted
test(parse): update GLM fallback test for kept-range slice
The test now passes the kept range as a slice reference rather than a direct range, matching the updated signature of `parse_unprotected_glm` which expects a slice of ranges. This ensures the test exercises the function with the correct argument type while preserving the original assertion of fenced text retention. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent cd5a9fb commit c95677f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/tinytools-agent/src/parse/test

‎crates/tinytools-agent/src/parse/test/markup.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use crate::parse::contains_call_markup;
77
fn glm_fallback_keeps_fenced_text_within_a_kept_range() {
88
let input = "discard\nintro\n```text\nshell/command>example\n```\nshell/command>real";
99
let start = input.find("intro").unwrap();
10-
let (text, calls) = super::super::parse_unprotected_glm(input, &[start..input.len()]);
10+
let kept = start..input.len();
11+
let (text, calls) = super::super::parse_unprotected_glm(input, std::slice::from_ref(&kept));
1112
assert_eq!(calls.len(), 1);
1213
assert_eq!(calls[0].arguments, serde_json::json!({"command": "real"}));
1314
assert!(text.starts_with("intro\n```text\nshell/command>example\n```"));

0 commit comments

Comments
 (0)