remolt 0.1.0

Embeddable TCL-ish interpreter for Rust applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use remolt::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!(remolt::test_harness(&mut interp, &args).is_ok());
}