.. | ||
array.rhai | ||
assignment.rhai | ||
comments.rhai | ||
fibonacci.rhai | ||
for1.rhai | ||
for2.rhai | ||
function_decl1.rhai | ||
function_decl2.rhai | ||
function_decl3.rhai | ||
if1.rhai | ||
loop.rhai | ||
mat_mul.rhai | ||
module.rhai | ||
oop.rhai | ||
op1.rhai | ||
op2.rhai | ||
op3.rhai | ||
primes.rhai | ||
README.md | ||
speed_test.rhai | ||
string.rhai | ||
strings_map.rhai | ||
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