mind-body tests: the instruction's length and the claimed task's repo follow the new wording

This commit is contained in:
Meta Vens 2026-11-04 09:13:53 +01:00
commit 960ed62ffa
2 changed files with 7 additions and 2 deletions

View file

@ -3547,7 +3547,7 @@ fn header_of_this_cut(base: &str) -> String {
fn a_first_line_is_the_whole_line_before_this_cut_but_for_what_it_says_it_gained() {
const GAINED: &str = r#" Later lines of this session carry only new messages. Your mind is searchable: `huginn query '{}' --near "<words>" --documents` finds what you hold that is not in front of you."#;
assert!(TURN_INSTRUCTION.ends_with(&format!("What follows is your machine as your mind holds it now, then what was said.{GAINED}")));
assert_eq!(TURN_INSTRUCTION.len(), 2242 + GAINED.len(), "the instruction's length, and what it gained");
assert_eq!(TURN_INSTRUCTION.len(), 2382 + GAINED.len(), "the instruction's length, and what it gained");
let rig = a_small_machine();
assert_eq!(failure_of(rig.go()), None);
let expected = header_of_this_cut(BASE_SMALL_MACHINE).replace(" text=", " at=2023-11-14T22:13:20Z text=");

View file

@ -1220,7 +1220,12 @@ fn the_start_message_carries_the_claimed_follow_ups_item_and_id_verbatim() {
for needle in ["Fix the thing.\nThen report \u{e9}.", claim.id.0.as_str(), "Use the eureka skill."] {
assert!(first.contains(needle), "{needle}: {first}");
}
assert!(first.contains(&format!("(campaign `{}`)", follow_up_campaign())), "{first}");
assert!(first.contains(&format!("(campaign `{}`, repo `{}`)", follow_up_campaign(), follow_up_repo())), "{first}");
}
fn follow_up_repo() -> String {
let PipelineDocument::FollowUp(document) = follow_up("c", &spec_ref("x")) else { unreachable!() };
document.repo.0
}
fn follow_up_campaign() -> String {