mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +00:00
update tests
This commit is contained in:
parent
247aa9c854
commit
3c7055e2d8
@ -15,4 +15,4 @@ path = "src/main.rs"
|
|||||||
marine-rs-sdk = "0.6.11"
|
marine-rs-sdk = "0.6.11"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
marine-rs-sdk-test = "0.1.10"
|
marine-rs-sdk-test = "0.2.0"
|
||||||
|
@ -31,13 +31,13 @@ mod tests {
|
|||||||
use marine_rs_sdk_test::marine_test;
|
use marine_rs_sdk_test::marine_test;
|
||||||
|
|
||||||
#[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")]
|
#[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());
|
let actual = greeting.greeting(String::new());
|
||||||
assert_eq!(actual, "Hi, ");
|
assert_eq!(actual, "Hi, ");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")]
|
#[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());
|
let actual = greeting.greeting("name".to_string());
|
||||||
assert_eq!(actual, "Hi, name");
|
assert_eq!(actual, "Hi, name");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user