diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-30 15:06:17 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-30 15:07:42 +0200 |
commit | 155f2e2a62b2e6526aeab927a217d9dbc06f21b5 (patch) | |
tree | 1afe858d14209e6c5e363db8feb27379a5732e48 /test/project | |
parent | 80986f8497b7bec307e0987d01412360d39cbb3f (diff) | |
download | redot-cpp-155f2e2a62b2e6526aeab927a217d9dbc06f21b5.tar.gz |
Add RPC tests.
Diffstat (limited to 'test/project')
-rw-r--r-- | test/project/main.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/project/main.gd b/test/project/main.gd index bad2501..cdd8696 100644 --- a/test/project/main.gd +++ b/test/project/main.gd @@ -101,6 +101,13 @@ func _ready(): assert_equal(example.test_bitfield(0), 0) assert_equal(example.test_bitfield(Example.FLAG_ONE | Example.FLAG_TWO), 3) + # RPCs. + assert_equal(example.return_last_rpc_arg(), 0) + example.test_rpc(42) + assert_equal(example.return_last_rpc_arg(), 42) + example.test_send_rpc(100) + assert_equal(example.return_last_rpc_arg(), 100) + # Virtual method. var event = InputEventKey.new() event.key_label = KEY_H |