use pukram2html::{convert_extended, Settings}; #[test] fn extended() { let pukram_text = "# Welcome to Pukram\nThis is a *simple* and /intuitive/ markup language."; let mut html_output = Vec::new(); let settings = Settings::default() .with_start_level(2) .with_use_textboxes(true); let text_info = convert_extended(pukram_text.lines(), &mut html_output, settings); assert_eq!(std::str::from_utf8(&html_output).unwrap(), "

Welcome to Pukram

\nThis is a simple and intuitive markup language.

\n"); assert_eq!(text_info.lines, 1); assert_eq!(text_info.words, 7); assert_eq!(text_info.chars, 47); }