From 68fb71e75991da8765c3955749ee902dec0c7afa Mon Sep 17 00:00:00 2001 From: alice <166900055+alicesaidhi@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:10:39 +0200 Subject: [PATCH] add test case --- test/tests.luau | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/tests.luau b/test/tests.luau index c0f69d1..3e60e78 100644 --- a/test/tests.luau +++ b/test/tests.luau @@ -945,6 +945,26 @@ TEST("create()", wrap_root(function() CHECK((f2 :: any).a == 2) end + do CASE "recursive fragment" + + local obj = create "Frame" { + + function() + return { + { + create "Frame" { + Name = "A" + } + } + } + end + + } + + CHECK(obj:FindFirstChild("A")) + + end + do CASE "garbage collection test" local wref