lib_machine tests should not be tokio/async
This commit is contained in:
@@ -147,8 +147,8 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use crate::machine::{QueryMatch, Value, QueryResolution};
|
use crate::machine::{QueryMatch, Value, QueryResolution};
|
||||||
|
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn programatic_query() {
|
fn programatic_query() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
|
|
||||||
machine.load_module_string(
|
machine.load_module_string(
|
||||||
@@ -186,8 +186,8 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn failing_query() {
|
fn failing_query() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
let query = String::from(r#"triple("a",P,"b")."#);
|
let query = String::from(r#"triple("a",P,"b")."#);
|
||||||
let output = machine.run_query(query);
|
let output = machine.run_query(query);
|
||||||
@@ -197,8 +197,8 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn complex_results() {
|
fn complex_results() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
machine.load_module_string(
|
machine.load_module_string(
|
||||||
"facts",
|
"facts",
|
||||||
@@ -249,8 +249,8 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn list_results() {
|
fn list_results() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
machine.load_module_string(
|
machine.load_module_string(
|
||||||
"facts",
|
"facts",
|
||||||
@@ -270,8 +270,8 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn consult() {
|
fn consult() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
|
|
||||||
machine.consult_module_string(
|
machine.consult_module_string(
|
||||||
@@ -330,8 +330,8 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[ignore = "fails on windows"]
|
#[ignore = "fails on windows"]
|
||||||
#[tokio::test]
|
#[test]
|
||||||
async fn stress_integration_test() {
|
fn stress_integration_test() {
|
||||||
let mut machine = Machine::new_lib();
|
let mut machine = Machine::new_lib();
|
||||||
|
|
||||||
// File with test commands, i.e. program code to consult and queries to run
|
// File with test commands, i.e. program code to consult and queries to run
|
||||||
|
|||||||
Reference in New Issue
Block a user