15 lines
357 B
Rust
15 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)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|