rhai/scripts
2022-01-20 12:06:36 +08:00
..
array.rhai
assignment.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
comments.rhai Fix scripts. 2021-04-16 10:33:55 +08:00
doc-comments.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
fibonacci.rhai Add ranges. 2021-12-15 12:06:17 +08:00
for1.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
for2.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
for3.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
function_decl1.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
function_decl2.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
function_decl3.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
function_decl4.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
if1.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
if2.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
loop.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
mat_mul.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
module.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
oop.rhai
op1.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
op2.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
op3.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
primes.rhai Add ranges. 2021-12-15 12:06:17 +08:00
README.md Notes on how to install tools. 2021-04-20 11:06:05 +08:00
speed_test.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
string.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
strings_map.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
switch.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00
while.rhai Format example scripts better. 2022-01-20 12:06:36 +08:00

Testing Scripts

Testing scripts written in Rhai.

Install rhai-run Tool

Use the following command to install the rhai-run tool:

cargo install --path . --bin rhai-run

How to Run

Run scripts using the rhai-run tool:

rhai-run ./scripts/test_script_to_run.rhai

or

cargo run --bin rhai-run ./scripts/test_script_to_run.rhai