Lines
100 %
Functions
Branches
use uuid::Uuid;
use crate::ctx::ScriptCtx;
use crate::render_template;
const CLOSURE_IN_CELL: &str =
"(let ((f (lambda (x) x)) (n (rpc-protocol-version))) (print (or (> n 5) f)))";
#[tokio::test]
async fn a_closure_in_a_cell_renders() {
let rendered = render_template(&ScriptCtx::new(Uuid::nil()), CLOSURE_IN_CELL).await;
assert!(rendered.is_ok(), "{rendered:?}");
}
async fn a_printable_value_renders() {
let rendered = render_template(&ScriptCtx::new(Uuid::nil()), "(print 1 \"a\" '(1 2))").await;