use hadron_sclang::interpreter::Interpreter; #[test] fn eval_and_compare() { Interpreter::init_thread(); let mut interpreter = Interpreter::new(); for path in glob::glob("tests/eval/**/*.scd").unwrap() { let path = path.unwrap(); let slot = interpreter.execute_file(&path); let actual = Interpreter::slot_as_string(slot); // Look up reference file, read in for comparison. let expect_path = path.with_extension("txt"); let expect = std::fs::read_to_string(expect_path).unwrap(); assert_eq!(actual, expect); } }