update tests

This commit is contained in:
boneyard93501 2021-09-01 16:24:37 -05:00
parent 247aa9c854
commit 3c7055e2d8
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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");
}