flesh/tests/test_lex.rs
Aidan e4f2fbaa70
- syntax tree datatypes
- prototype lex function
- a lex unit test
- gitignore
- library structure
- license
2021-01-24 12:34:58 -08:00

14 lines
357 B
Rust

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)
}
}
}