rhai/scripts
2021-12-20 15:18:44 +08:00
..
array.rhai
assignment.rhai
comments.rhai
fibonacci.rhai Add ranges. 2021-12-15 12:06:17 +08:00
for1.rhai Expand switch example. 2021-12-20 15:18:44 +08:00
for2.rhai Add ranges. 2021-12-15 12:06:17 +08:00
function_decl1.rhai
function_decl2.rhai
function_decl3.rhai
function_decl4.rhai
if1.rhai
if2.rhai
loop.rhai
mat_mul.rhai Add ranges. 2021-12-15 12:06:17 +08:00
module.rhai
oop.rhai
op1.rhai
op2.rhai
op3.rhai
primes.rhai Add ranges. 2021-12-15 12:06:17 +08:00
README.md
speed_test.rhai
string.rhai
strings_map.rhai
switch.rhai Expand switch example. 2021-12-20 15:18:44 +08:00
while.rhai

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