use super::compose_system;
#[test]
fn an_unnamed_agent_states_no_identity() {
assert_eq!(
compose_system("hello", None, "system body"),
"<goal>\nhello\n</goal>\n\nsystem body"
);
}
#[test]
fn a_named_agent_is_told_its_name_between_the_goal_and_the_soul() {
let slot = compose_system("hello", Some("pale-otter"), "system body");
assert_eq!(
slot,
"<goal>\nhello\n</goal>\n\nYour name is pale-otter.\n\nsystem body"
);
assert!(slot.starts_with("<goal>"), "{slot}");
assert_eq!(slot.matches("pale-otter").count(), 1, "{slot}");
}