add variable export function

This commit is contained in:
Aidan Hahn 2021-11-06 15:43:42 -07:00
parent 7ca42f18da
commit 0931fbdcf0
No known key found for this signature in database
GPG key ID: 327711E983899316
5 changed files with 102 additions and 6 deletions

View file

@ -1,11 +1,11 @@
mod str_lib_tests {
use relish::stdlib::{get_stdlib};
use relish::ast::{lex, eval, ast_to_string, VTable, FTable, Ctr};
use relish::ast::{lex, eval, VTable, FTable, Ctr};
use std::rc::Rc;
use std::cell::RefCell;
#[test]
fn test_simple_echo() {
fn test_simple_concat() {
let document = "(concat 'test')";
let result = "test";
let vt = Rc::new(RefCell::new(VTable::new()));
@ -49,7 +49,7 @@ mod str_lib_tests {
}
#[test]
fn test_poly_echo() {
fn test_poly_concat() {
let document = "(concat 'test' 1 2 3)";
let result = "test123";
let vt = Rc::new(RefCell::new(VTable::new()));
@ -93,7 +93,7 @@ mod str_lib_tests {
}
#[test]
fn test_empty_echo() {
fn test_empty_concat() {
let document = "(concat)";
let result = "";
let vt = Rc::new(RefCell::new(VTable::new()));