nar_dev_utils::mod_and_pub_use! {
translators
launcher
dialect
}
#[cfg(test)]
mod tests {
use super::*;
use crate::{
runtimes::{
tests::{_test_opennars, test_simple_answer},
CommandVmRuntime,
},
tests::cin_paths::OPENNARS as JAR_PATH_OPENNARS,
};
use navm::vm::VmLauncher;
fn launch_vm() -> CommandVmRuntime {
let jar_path = JAR_PATH_OPENNARS;
OpenNARS::new(jar_path).launch().expect("无法启动虚拟机")
}
#[test]
#[ignore = "【2024-04-14 20:24:52】会导致残留子进程"]
fn test() {
let vm = launch_vm();
_test_opennars(vm)
}
#[test]
#[ignore = "【2024-04-14 20:24:52】会导致残留子进程"]
fn test_universal() {
let vm = launch_vm();
test_simple_answer(vm)
}
}