persona tests: the raised cap stays inside the tuning's range; the hand count reads without int_plus_one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8f04b70f86
commit
b9bb470e07
1 changed files with 2 additions and 2 deletions
|
|
@ -892,7 +892,7 @@ fn t_h5_a_start_held_after_a_completed_wake_counts_in_the_run() {
|
|||
spend_the_day(&rig);
|
||||
let cap = |usd: f64| std::fs::write(rig.dir.path().join("persona-tuning.toml"), format!("[agent]\nday_usd = {usd:?}\n")).unwrap();
|
||||
assert!(matches!(rig.run(Tally::default()), Outcome::Held { .. }));
|
||||
cap(1000.0);
|
||||
cap(50.0);
|
||||
rig.agent.answers.borrow_mut().push_back(says(&room(1), "I am here."));
|
||||
assert_eq!(rig.run(Tally::default()), Outcome::Drained { wakes: 1, acked_through: Some(1) }, "the raised cap wakes her");
|
||||
cap(3.0);
|
||||
|
|
@ -975,7 +975,7 @@ fn t_h4_a_backlog_over_the_budget_shows_the_newest_lines_and_says_how_many_it_le
|
|||
let input = agent_first_input(&rig);
|
||||
// The count by hand: newest first, each line and its newline, until the next would pass the budget.
|
||||
let (mut used, mut kept) = (0, 0_u64);
|
||||
while kept < 300 && used + rendered_len(300 - kept, text_len(300 - kept)) + 1 <= HELD_LINES_BUDGET {
|
||||
while kept < 300 && used + rendered_len(300 - kept, text_len(300 - kept)) < HELD_LINES_BUDGET {
|
||||
used += rendered_len(300 - kept, text_len(300 - kept)) + 1;
|
||||
kept += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue