From 3c7055e2d8405f492846f2d59c0ceb30369555f6 Mon Sep 17 00:00:00 2001 From: boneyard93501 <4523011+boneyard93501@users.noreply.github.com> Date: Wed, 1 Sep 2021 16:24:37 -0500 Subject: [PATCH] update tests --- marine-examples/greeting/Cargo.toml | 2 +- marine-examples/greeting/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/marine-examples/greeting/Cargo.toml b/marine-examples/greeting/Cargo.toml index d14b3ef..8d3e5f1 100644 --- a/marine-examples/greeting/Cargo.toml +++ b/marine-examples/greeting/Cargo.toml @@ -15,4 +15,4 @@ path = "src/main.rs" marine-rs-sdk = "0.6.11" [dev-dependencies] -marine-rs-sdk-test = "0.1.10" +marine-rs-sdk-test = "0.2.0" diff --git a/marine-examples/greeting/src/main.rs b/marine-examples/greeting/src/main.rs index b2facba..820a5e3 100644 --- a/marine-examples/greeting/src/main.rs +++ b/marine-examples/greeting/src/main.rs @@ -31,13 +31,13 @@ mod tests { use marine_rs_sdk_test::marine_test; #[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")] - fn empty_string() { + fn empty_string(greeting: marine_test_env::greeting::ModuleInterface) { let actual = greeting.greeting(String::new()); assert_eq!(actual, "Hi, "); } #[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")] - fn non_empty_string() { + fn non_empty_string(greeting: marine_test_env::greeting::ModuleInterface) { let actual = greeting.greeting("name".to_string()); assert_eq!(actual, "Hi, name"); }