2024-12-27 21:00:07 +01:00

14 lines
343 B
GDScript

extends __GDRx_Test__
const TEST_UNIT_NAME = "TIMERS"
func test_rx_timer() -> bool:
var obs = GDRx.start_timer(0.1)
var result = [0, Comp()]
return await compare(obs, result)
func test_rx_periodic_timer() -> bool:
var obs = GDRx.start_periodic_timer(0.1).take(5)
var result = [0, 1, 2, 3, 4, Comp()]
return await compare(obs, result)