mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +00:00
update tests, bump version
This commit is contained in:
parent
ac82f6f60c
commit
07c07d9c40
@ -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"
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user