Persona R10 fix-up: the outcome table's note rows account for the draft they leave unsent
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
55da50cd19
commit
864aa04705
1 changed files with 4 additions and 2 deletions
|
|
@ -178,7 +178,8 @@ fn an_amendment_is_told_by_the_actuators_receipt() {
|
|||
|
||||
#[test]
|
||||
fn a_note_to_self_is_told_as_left_and_never_as_read() {
|
||||
let note = |suggest: Value| record("<typed>The kettle wants a softer attack.</typed> <typed>And the door.</typed>", json!({ "say": [], "gaps": [], "suggest": suggest }), &[]);
|
||||
let prose = "Then I stop. <typed>The kettle wants a softer attack.</typed> <typed>And the door.</typed>";
|
||||
let note = |suggest: Value| record(prose, crate::projection::interpret::tests::holding_the_rest(json!({ "say": [], "gaps": [], "suggest": suggest }), prose, "Then I stop"), &[]);
|
||||
let (left, _) = told(¬e(json!([{ "kind": "idea", "draft": 1, "about": null, "private": false }])));
|
||||
assert_eq!(left, ["- He left Self a note: \"The kettle wants a softer attack.\". It waits in Self's inbox until Self reads it; nothing tells him when, and nothing in it happens by itself."]);
|
||||
let (private, _) = told(¬e(json!([{ "kind": "idea", "draft": 1, "about": null, "private": true }])));
|
||||
|
|
@ -207,7 +208,8 @@ fn every_row() -> Vec<Value> {
|
|||
let text = "Missed you too. I'll send the render tonight.";
|
||||
let mut broke = record("<typed>Hi Nibu.</typed>", json!({ "say": [{ "draft": 1 }], "gaps": [] }), &["Hi Nibu."]);
|
||||
broke["broke_after"] = json!("commit");
|
||||
let note = |suggest: Value| record("<typed>The kettle wants a softer attack.</typed> <typed>And the door.</typed>", json!({ "say": [], "gaps": [], "suggest": suggest }), &[]);
|
||||
let prose = "Then I stop. <typed>The kettle wants a softer attack.</typed> <typed>And the door.</typed>";
|
||||
let note = |suggest: Value| record(prose, crate::projection::interpret::tests::holding_the_rest(json!({ "say": [], "gaps": [], "suggest": suggest }), prose, "Then I stop"), &[]);
|
||||
vec![
|
||||
record("<typed>The economy is still the least-built part!</typed>", json!({ "say": [{ "draft": 1 }], "gaps": [] }), &[]),
|
||||
record("<typed>One.</typed> <typed>Two.</typed> <typed>Three.</typed>", json!({ "say": [{ "draft": 1 }, { "draft": 2 }, { "draft": 3 }], "gaps": [] }), &["One.", "Two."]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue