flesh/tests/test_lex.rs

15 lines
357 B
Rust
Raw Normal View History

mod lex_tests {
use relish::ast::{lex};
#[test]
fn test_lex_basic_list() {
let document: &str = "(hello \"world\")";
match lex(document.to_string()) {
Ok(box_cell) => {
assert_eq!(format!("{}", *box_cell), document.to_string());
},
Err(_s) => assert!(false)
}
}
}