rhai/scripts
2021-12-31 16:29:54 +08:00
..
array.rhai
assignment.rhai
comments.rhai
doc-comments.rhai Add doc-comment example script. 2021-12-31 16:29:54 +08:00
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
for3.rhai Make for loops for efficient. 2021-12-31 15:59:13 +08:00
function_decl1.rhai
function_decl2.rhai
function_decl3.rhai Add new example scripts. 2021-06-07 20:15:06 +08:00
function_decl4.rhai Add new example scripts. 2021-06-07 20:15:06 +08:00
if1.rhai
if2.rhai Add new example scripts. 2021-06-07 20:15:06 +08:00
loop.rhai Change tabs to spaces. 2021-05-24 12:12:16 +08:00
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 Change tabs to spaces. 2021-05-24 12:12:16 +08:00
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