diff options
author | Joe Wilm <joe@jwilm.com> | 2016-09-16 20:25:43 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-09-16 20:25:43 -0700 |
commit | 171ad08b4e98bd23dd1aa9d28731c12dde35bba2 (patch) | |
tree | 5919dff1676c921b056ea494a7cd8bebd27a1be6 | |
parent | 0e9785ccc1d2c440d4251df74c909964fd46f312 (diff) | |
download | r-alacritty-vte-171ad08b4e98bd23dd1aa9d28731c12dde35bba2.tar.gz r-alacritty-vte-171ad08b4e98bd23dd1aa9d28731c12dde35bba2.tar.bz2 r-alacritty-vte-171ad08b4e98bd23dd1aa9d28731c12dde35bba2.zip |
Add test for ext::Transition
Debugging
-rw-r--r-- | codegen/src/ext.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/codegen/src/ext.rs b/codegen/src/ext.rs index 94fdd51..d489bf0 100644 --- a/codegen/src/ext.rs +++ b/codegen/src/ext.rs @@ -396,3 +396,15 @@ fn expand_state_table<'cx>( MacEager::expr(ast) } + +#[cfg(test)] +mod tests { + use definitions::{State, Action}; + use super::Transition; + + #[test] + fn pack_u8() { + let transition = Transition::StateAction(State::CsiParam, Action::Collect); + assert_eq!(transition.pack_u8(), 0x24); + } +} |