Skip to content

Commit 35917f0

Browse files
committed
add rhai test
1 parent aa5eb65 commit 35917f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn on_test() {
2+
let my_type = types.TestResource;
3+
assert(type_of(my_type) != "()", "Type TestResource is not available in type cache");
4+
assert(my_type.short_name.call() == "TestResource", "Type t.TestResource:short_name() is not correct: " + my_type.short_name.call());
5+
}

0 commit comments

Comments
 (0)