molt 0.3.1

Embeddable TCL interpreter for Rust applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate molt;
use molt::Interp;

#[test]
fn test_tcl_tests() {
    // FIRST, create and initialize the interpreter.
    // Set the recursion limit down from its default, or the interpreter recursion
    // limit test will fail (the Rust stack will overflow).
    let mut interp = Interp::new();
    interp.set_recursion_limit(200);

    let args = vec![String::from("tests/all.tcl")];

    assert!(molt::test_harness(&mut interp, &args).is_ok());
}