pub fn no_room_yet(sells_room: bool, has_fact: bool, person: bool, seller: bool) -> bool {
sells_room && !has_fact && person && !seller
}
pub const NO_ROOM_YET: &str = "no room yet: the account's room is being set up at the shop (a minute at most) — try again shortly, or add room at the shop";
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn only_a_persons_account_with_no_fact_at_a_selling_estate_holds_no_room() {
assert!(no_room_yet(true, false, true, false));
assert!(
!no_room_yet(false, false, true, false),
"a sold estate / the open build: no fact is uncapped, as today"
);
assert!(!no_room_yet(true, true, true, false), "a fact rules");
assert!(
!no_room_yet(true, false, false, false),
"a group, a clan, a machine"
);
assert!(!no_room_yet(true, false, true, true), "the seller's own");
}
}