add rhai tests

This commit is contained in:
Jaroslaw Konik 2025-05-18 17:07:03 +02:00
parent 905c4c1f4b
commit 015c1827ef
6 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,3 @@
fn test_func() {
rust_func(entity.index);
}

View file

@ -0,0 +1,5 @@
let index = entity.index;
fn test_func() {
rust_func(index);
}

View file

@ -0,0 +1,3 @@
fn test_func() {
rust_func(entity);
}

View file

@ -0,0 +1,3 @@
fn test_func() {
rust_func(new_vec3(1.5, 2.5, -3.5));
}

View file

@ -0,0 +1,4 @@
fn test_func(vec3) {
// TODO: asser vec3 correctness
mark_success()
}

View file

@ -1,6 +1,5 @@
$index = $entity.index
def test_func
print($index)
rust_func($index)
end