pub static META_CONCEPT_TYPE: &str = "$ConceptType";
pub static META_PROPOSITION_TYPE: &str = "$PropositionType";
pub static META_SELF_NAME: &str = "$self";
pub static META_SYSTEM_NAME: &str = "$system";
pub static DOMAIN_TYPE: &str = "Domain";
pub static EVENT_TYPE: &str = "Event";
pub static PERSON_TYPE: &str = "Person";
pub static INSIGHT_TYPE: &str = "Insight";
pub static SLEEP_TASK_TYPE: &str = "SleepTask";
pub static PREFERENCE_TYPE: &str = "Preference";
pub static COMMITMENT_TYPE: &str = "Commitment";
pub static BELONGS_TO_DOMAIN_TYPE: &str = "belongs_to_domain";
pub static GENESIS_KIP: &str = include_str!("../capsules/Genesis.kip");
pub static EVENT_KIP: &str = include_str!("../capsules/Event.kip");
pub static INSIGHT_KIP: &str = include_str!("../capsules/Insight.kip");
pub static PERSON_KIP: &str = include_str!("../capsules/Person.kip");
pub static PREFERENCE_KIP: &str = include_str!("../capsules/Preference.kip");
pub static COMMITMENT_KIP: &str = include_str!("../capsules/Commitment.kip");
pub static SLEEP_TASK_KIP: &str = include_str!("../capsules/SleepTask.kip");
pub static PERSON_SELF_KIP: &str = include_str!("../capsules/persons/self.kip");
pub static PERSON_SYSTEM_KIP: &str = include_str!("../capsules/persons/system.kip");
#[cfg(test)]
mod tests {
use super::*;
use crate::parse_kip;
#[test]
fn test_capsule() {
let genesis = parse_kip(GENESIS_KIP).expect("Failed to parse Genesis capsule");
println!("Genesis Capsule: {:#?}", genesis);
let event_type = parse_kip(EVENT_KIP).expect("Failed to parse Event type capsule");
println!("Event Type Capsule: {:#?}", event_type);
let insight_type = parse_kip(INSIGHT_KIP).expect("Failed to parse Insight type capsule");
println!("Insight Type Capsule: {:#?}", insight_type);
let person_type = parse_kip(PERSON_KIP).expect("Failed to parse Person type capsule");
println!("Person Type Capsule: {:#?}", person_type);
let preference_type =
parse_kip(PREFERENCE_KIP).expect("Failed to parse Preference type capsule");
println!("Preference Type Capsule: {:#?}", preference_type);
let commitment_type =
parse_kip(COMMITMENT_KIP).expect("Failed to parse Commitment type capsule");
println!("Commitment Type Capsule: {:#?}", commitment_type);
let sleep_task_type =
parse_kip(SLEEP_TASK_KIP).expect("Failed to parse SleepTask type capsule");
println!("SleepTask Type Capsule: {:#?}", sleep_task_type);
let person_self = parse_kip(PERSON_SELF_KIP).expect("Failed to parse Self person capsule");
println!("Self Capsule: {:#?}", person_self);
let person_system =
parse_kip(PERSON_SYSTEM_KIP).expect("Failed to parse System person capsule");
println!("System Capsule: {:#?}", person_system);
}
}