Skip to content

Instantly share code, notes, and snippets.

@martinmroz
Created October 27, 2019 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinmroz/547a09d68f4ce509fe349acb32aeea1f to your computer and use it in GitHub Desktop.
Save martinmroz/547a09d68f4ce509fe349acb32aeea1f to your computer and use it in GitHub Desktop.
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_flux_over_byte_string() {
assert_eq!(
flux_over_byte_string("testing one two three".as_bytes()),
Some(Flux::new(CharType::NotSpace, 4, 0, CharType::NotSpace))
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment