Skip to content

Commit c3c40b1

Browse files
authored
Update test.rd
1 parent d9aa499 commit c3c40b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test.rd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config {
44
port = 8080;
55
};
66

7-
import "E:/projects/rust/cli/target/release/plugin_name.dll" as plg;
7+
import "path/to/std_plugin_name.dll" as std;
88

99
global_error_handler(error) {
1010
Response.status(500);
@@ -40,18 +40,18 @@ route "/test2" GET {
4040
};
4141

4242
route "/test3" GET {
43-
val a = plg::is_email_valid("[email protected]")?;
44-
val b = plg::is_ip_valid("127.0.0.1")?;
45-
val c = plg::env_var("HOME")?;
46-
val d = plg::random(1, 100)?;
47-
val e = plg::to_uppercase("this is lowercase")?;
48-
val f = plg::to_lowercase("THIS IS UPPERCASE")?;
49-
val now = plg::now()?;
50-
plg::sleep(2)?;
51-
val after = plg::now()?;
43+
val a = std::is_email_valid("[email protected]")?;
44+
val b = std::is_ip_valid("127.0.0.1")?;
45+
val c = std::env_var("HOME")?;
46+
val d = std::random(1, 100)?;
47+
val e = std::to_uppercase("this is lowercase")?;
48+
val f = std::to_lowercase("THIS IS UPPERCASE")?;
49+
val now = std::now()?;
50+
std::sleep(2)?;
51+
val after = std::now()?;
5252

5353
val res = "a = " + a + "\n" + "b = " + b + "\n" + "c = " + c + "\n" + "d = " + d + "\n" + "e = " + e + "\n" + "f = " + f + "\n\n" + "before = " + now + "\n" + "after = " + after;
5454

5555
Response.body(res);
5656
Response.send();
57-
};
57+
};

0 commit comments

Comments
 (0)