sestring/src/test/se_hyphen.rs

14 lines
423 B
Rust
Raw Normal View History

2021-10-03 19:52:21 +00:00
use crate::{SeString, Payload};
use crate::payload::{TextPayload, SeHyphenPayload};
super::basic_tests! {
se_hyphen {
payload = &[66, 101, 102, 111, 114, 101, 2, 31, 1, 3, 65, 102, 116, 101, 114];
expected = SeString(vec![
Payload::Text(TextPayload::from("Before")),
Payload::SeHyphen(SeHyphenPayload),
Payload::Text(TextPayload::from("After")),
]);
}
}