.unwrap().finish().unwrap(),
"a die");
assert!{matches!{
- subst(s_t("a die"), "_colour", "").unwrap_err().kind,
+ dbg!(subst(s_t("a die"), "_colour", "")).unwrap_err().kind,
SEK::MissingToken(c) if c == "_colour",
}}
assert!{matches!{
- subst(s_t("a _colour _colour die"), "_colour", "").unwrap_err().kind,
+ dbg!(subst(s_t("a _colour _colour die"), "_colour", "")).unwrap_err().kind,
SEK::RepeatedToken(c) if c == "_colour",
}}
.unwrap().finish().unwrap(),
"a die");
assert!{matches!{
- subst(s_t("a die"), "_colour", "").unwrap_err().kind,
+ dbg!(subst(s_t("a die"), "_colour", "")).unwrap_err().kind,
SEK::MissingToken(c) if c == "_colour",
}}
assert!{matches!{
- subst(s_t("a ${colour} ${colour} die"), "_colour", "").unwrap_err().kind,
+ dbg!(subst(s_t("a ${colour} ${colour} die"), "_colour", ""))
+ .unwrap_err().kind,
SEK::RepeatedToken(c) if c == "_colour",
}}