tree: 86a25558215a70aa2f937f8609b73ff2b8892951 [path history] [tgz]
  1. all_in_one.d.rhai
  2. array.rhai
  3. assignment.rhai
  4. comments.rhai
  5. doc-comments.rhai
  6. fibonacci.rhai
  7. for1.rhai
  8. for2.rhai
  9. for3.rhai
  10. function_decl1.rhai
  11. function_decl2.rhai
  12. function_decl3.rhai
  13. function_decl4.rhai
  14. function_decl5.rhai
  15. if1.rhai
  16. if2.rhai
  17. loop.rhai
  18. mat_mul.rhai
  19. module.rhai
  20. oop.rhai
  21. op1.rhai
  22. op2.rhai
  23. op3.rhai
  24. primes.rhai
  25. README.md
  26. speed_test.rhai
  27. string.rhai
  28. strings_map.rhai
  29. switch.rhai
  30. while.rhai
rhai/scripts/README.md

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