diff --git a/zfoo/test/scheduler/SchedulerTest.gd b/zfoo/test/scheduler/SchedulerTest.gd index 5e41735..d31ff54 100644 --- a/zfoo/test/scheduler/SchedulerTest.gd +++ b/zfoo/test/scheduler/SchedulerTest.gd @@ -4,4 +4,5 @@ const TimeUtils = preload("res://zfoo/scheduler/TimeUtils.gd") static func test(): + print("-----------------------SchedulerBus-----------------------") SchedulerBus.schedule(MySchedulerRunnable.new(), 5000) diff --git a/zfoo/test/util/IdUtilsTest.gd b/zfoo/test/util/IdUtilsTest.gd new file mode 100644 index 0000000..9dd9f7a --- /dev/null +++ b/zfoo/test/util/IdUtilsTest.gd @@ -0,0 +1,10 @@ +extends Object + + +const IdUtils = preload("res://zfoo/util/IdUtils.gd") + +static func test(): + print("-----------------------IdUtils-----------------------") + print(IdUtils.getLocalIntId()) + print(IdUtils.getLocalIntId()) + print(IdUtils.getLocalIntId()) diff --git a/zfoo/test/zfoo_test.gd b/zfoo/test/zfoo_test.gd index 47d9a7a..ae00be2 100644 --- a/zfoo/test/zfoo_test.gd +++ b/zfoo/test/zfoo_test.gd @@ -1,9 +1,10 @@ extends Node2D const SchedulerTest = preload("res://zfoo/test/scheduler/SchedulerTest.gd") +const IdUtilsTest = preload("res://zfoo/test/util/IdUtilsTest.gd") func _ready(): SchedulerTest.test() - + IdUtilsTest.test()