use wander::interpreter::{eval, Expression};
use wander::preludes::common;
use wander::{NoHostType, WanderValue};
#[test]
fn eval_boolean_true() {
let input = Expression::Boolean(true);
let res = eval(&input, &mut common::<NoHostType>());
let expected = Ok(WanderValue::Bool(true));
assert_eq!(res, expected);
}
#[test]
fn eval_string_with_quotes() {
let input = Expression::String(r#"\""#.to_owned());
let res = eval(&input, &mut common::<NoHostType>());
let expected = Ok(WanderValue::String(r#"""#.to_owned()));
assert_eq!(res, expected);
}