2020-10-07 16:56:21 +02:00
|
|
|
Testing Scripts
|
|
|
|
===============
|
|
|
|
|
|
|
|
Testing scripts written in Rhai.
|
|
|
|
|
|
|
|
|
|
|
|
How to Run
|
|
|
|
----------
|
|
|
|
|
2020-12-25 09:08:56 +01:00
|
|
|
Compile the `rhai-run` example:
|
2020-10-07 16:56:21 +02:00
|
|
|
|
|
|
|
```bash
|
2020-12-25 09:08:56 +01:00
|
|
|
cargo build --example rhai-run
|
2020-10-07 16:56:21 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Run it:
|
|
|
|
|
|
|
|
```bash
|
2020-12-25 09:08:56 +01:00
|
|
|
./target/debug/examples/rhai-run ./scripts/test_script_to_run.rhai
|
2020-10-07 16:56:21 +02:00
|
|
|
```
|