update tests, bump version

This commit is contained in:
boneyard93501 2021-09-01 17:14:03 -05:00
parent ac82f6f60c
commit 07c07d9c40
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ name = "hello_world"
path = "src/main.rs"
[dependencies]
marine-rs-sdk = "0.6.10"
marine-rs-sdk = "0.6.11"
[dev-dependencies]
marine-rs-sdk-test = "0.1.9"
marine-rs-sdk-test = "0.2.0"

View File

@ -40,13 +40,13 @@ mod tests {
use marine_rs_sdk_test::marine_test;
#[marine_test(config_path = "../configs/Config.toml", modules_dir = "../artifacts")]
fn non_empty_string() {
fn non_empty_string(hello_world: marine_test_env::hello_world::ModuleInterface) {
let actual = hello_world.hello("SuperNode".to_string());
assert_eq!(actual.msg, "Hello from: \nSuperNode".to_string());
}
#[marine_test(config_path = "../configs/Config.toml", modules_dir = "../artifacts")]
fn empty_string() {
fn empty_string(hello_world: marine_test_env::hello_world::ModuleInterface) {
let actual = hello_world.hello("".to_string());
assert_eq!(actual.msg, "Hello from: \n");
}