You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format!("a valid body should not get error. but instead it got one: {e}")
109
+
})?,
110
+
);
111
+
112
+
EventWrapper::new(
113
+
this_event_time.into(),
114
+
this_event_time,
115
+
Event::MapleCreated(new_maple),
116
+
)
117
+
};
118
+
119
+
let the_redmaple = RedMaple::new(vec![first_event]);
120
+
let _ = matchBody::try_from(&the_redmaple){
121
+
Ok(b) => match b {
122
+
Body::OneLineText(text) => {
123
+
if text == VALID_BODY_TEXT{
124
+
Ok(())
125
+
}else{
126
+
Err(format!("wanted '{VALID_BODY_TEXT}', instead go '{text}'"))
127
+
}
128
+
}
129
+
},
130
+
Err(e) => Err(format!(
131
+
"Should be able to get a body. but instead it got one: {e}"
132
+
)),
133
+
}?;
134
+
135
+
let second_event = {
136
+
let this_event_time = OffsetDateTime::now_utc();
137
+
let valid_maple_id = ValidMapleID::try_from(&the_redmaple).map_err(|err| format!("I redmaple with events should be able to give out valid maple ids but it could not. instead got: {err}"))?;
0 commit comments