pub fn parse_ty_mok_ta_xot(s: &str) -> IResult<&str, (HandCreation, Action)>
use cetkaik_kiaak::body::{parse_ty_mok_ta_xot, HandCreation, Action};
use cetkaik_core::Profession;
use cetkaik_core::absolute::*;
use std::collections::HashSet;
use std::iter::FromIterator;
assert_eq!(
parse_ty_mok_ta_xot("[SY]為(獣)(同色馬弓兵)再行"),
Ok((
"",
(HandCreation {
player_name: String::from("SY"),
hands: HashSet::from_iter(vec![String::from("獣"), String::from("同色馬弓兵")].into_iter())
}, Action::TyMok)
))
);
assert_eq!(
parse_ty_mok_ta_xot("[SY]為(獣)(同色馬弓兵)終季 手十"),
Ok((
"",
(HandCreation {
player_name: String::from("SY"),
hands: HashSet::from_iter(vec![String::from("獣"), String::from("同色馬弓兵")].into_iter())
}, Action::TaXot(10))
))
);
assert_eq!(
parse_ty_mok_ta_xot("[SY]為(獣)(同色馬弓兵)終季 手20"),
Ok((
"",
(HandCreation {
player_name: String::from("SY"),
hands: HashSet::from_iter(vec![String::from("獣"), String::from("同色馬弓兵")].into_iter())
}, Action::TaXot(20))
))
);