use bzw_highlight; #[test] fn lt(){ assert_eq!(bzw_highlight::to_html("<"), "<"); } #[test] fn gt(){ assert_eq!(bzw_highlight::to_html(">"), ">"); } #[test] fn symbol(){ assert_eq!(bzw_highlight::to_html(r#"""#), r#"""#); } #[test] fn comment(){ assert_eq!(bzw_highlight::to_html("# test"), r#"# test"#); } #[test] fn number(){ assert_eq!(bzw_highlight::to_html("1"), r#"1"#); } #[test] fn header(){ assert_eq!(bzw_highlight::to_html("world"), r#"world"#); } #[test] fn keyword(){ assert_eq!(bzw_highlight::to_html("position"), r#"position"#); }