From a6baebc7c2aa789eaba5b25a2b84b734cc6f9a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 24 Feb 2023 14:31:36 +0100 Subject: Fixup GDScript test using non-deterministic ids Follow-up to #73870. --- .../tests/scripts/runtime/features/groups_are_not_properties.gd | 6 ++++-- .../tests/scripts/runtime/features/groups_are_not_properties.out | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/gdscript/tests') diff --git a/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.gd b/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.gd index d205da22c2..a5ad7c0b85 100644 --- a/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.gd +++ b/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.gd @@ -5,5 +5,7 @@ extends RefCounted @export_category("RefCounted") func test(): - prints("Not shadowed", Resource.new()) - prints("Not shadowed", RefCounted.new()) + var res = Resource.new() + var ref = RefCounted.new() + prints("Resource class not shadowed:", res is Resource) + prints("RefCounted class not shadowed:", ref is RefCounted) diff --git a/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.out b/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.out index a1a2ff6cd9..182c6dcd3a 100644 --- a/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.out +++ b/modules/gdscript/tests/scripts/runtime/features/groups_are_not_properties.out @@ -1,3 +1,3 @@ GDTEST_OK -Not shadowed -Not shadowed +Resource class not shadowed: true +RefCounted class not shadowed: true -- cgit v1.2.3