Fix broken test on Linux

This commit is contained in:
Federico Terzi 2020-12-03 20:02:45 +01:00
parent 727d738615
commit 7a688ab291

View File

@ -174,7 +174,7 @@ mod tests {
); );
let extension = ScriptExtension::new(); let extension = ScriptExtension::new();
let output = extension.calculate(&params, &vec![], &HashMap::new()); let output = extension.calculate(&params, &vec![], &HashMap::new()).unwrap();
assert!(output.is_some()); assert!(output.is_some());
assert_eq!( assert_eq!(
@ -194,7 +194,7 @@ mod tests {
params.insert(Value::from("trim"), Value::from(false)); params.insert(Value::from("trim"), Value::from(false));
let extension = ScriptExtension::new(); let extension = ScriptExtension::new();
let output = extension.calculate(&params, &vec![], &HashMap::new()); let output = extension.calculate(&params, &vec![], &HashMap::new()).unwrap();
assert!(output.is_some()); assert!(output.is_some());
assert_eq!( assert_eq!(
@ -213,7 +213,7 @@ mod tests {
); );
let extension = ScriptExtension::new(); let extension = ScriptExtension::new();
let output = extension.calculate(&params, &vec!["jon".to_owned()], &HashMap::new()); let output = extension.calculate(&params, &vec!["jon".to_owned()], &HashMap::new()).unwrap();
assert!(output.is_some()); assert!(output.is_some());
assert_eq!( assert_eq!(
@ -233,7 +233,7 @@ mod tests {
params.insert(Value::from("inject_args"), Value::from(true)); params.insert(Value::from("inject_args"), Value::from(true));
let extension = ScriptExtension::new(); let extension = ScriptExtension::new();
let output = extension.calculate(&params, &vec!["jon".to_owned()], &HashMap::new()); let output = extension.calculate(&params, &vec!["jon".to_owned()], &HashMap::new()).unwrap();
assert!(output.is_some()); assert!(output.is_some());
assert_eq!( assert_eq!(
@ -261,7 +261,7 @@ mod tests {
); );
let extension = ScriptExtension::new(); let extension = ScriptExtension::new();
let output = extension.calculate(&params, &vec![], &vars); let output = extension.calculate(&params, &vec![], &vars).unwrap();
assert!(output.is_some()); assert!(output.is_some());
assert_eq!( assert_eq!(