export vars fixed. tests pass
This commit is contained in:
parent
307101327c
commit
1b1ac3cd2b
3 changed files with 17 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ mod var_lib_tests {
|
|||
#[test]
|
||||
fn test_variable_export_and_lookup() {
|
||||
let doc1 = "(export test 1)";
|
||||
let doc2 = "(echo test)";
|
||||
let doc2 = "(concat test)";
|
||||
let result = "1";
|
||||
let vt = Rc::new(RefCell::new(VTable::new()));
|
||||
let ft: Rc<RefCell<FTable>>;
|
||||
|
|
@ -34,6 +34,7 @@ mod var_lib_tests {
|
|||
},
|
||||
|
||||
Ok(ctr) => {
|
||||
println!("{:#?}", vt);
|
||||
match ctr {
|
||||
Ctr::None => assert!(true),
|
||||
_ => assert!(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue