fix: string element parsing
This commit is contained in:
parent
8a3a3dc099
commit
55130db04a
6 changed files with 22 additions and 3 deletions
16
src/lib.rs
16
src/lib.rs
|
@ -1,2 +1,18 @@
|
|||
pub mod core;
|
||||
pub use core::parser::document as parse;
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::{core::element::Render, parse};
|
||||
|
||||
#[test]
|
||||
fn string_escape() {
|
||||
std::fs::write(
|
||||
"string_escape.html",
|
||||
parse(&std::fs::read_to_string("examples/string_escape.lisp").unwrap())
|
||||
.0
|
||||
.render(),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue