mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +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"
|
||||
|
||||
[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;
|
||||
|
||||
#[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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user