fix - dont directly compare elements

This commit is contained in:
Michael Freno
2025-12-13 00:23:12 -05:00
parent e9b532b8f8
commit c069b2be22
3 changed files with 22 additions and 29 deletions

View File

@@ -96,7 +96,7 @@ function TestRetainedPropStability:test_retainedElementWithComplexProps()
-- Should return same element
luaunit.assertEquals(window2.id, id1)
luaunit.assertEquals(window2, window1)
--luaunit.assertEquals(window2, window1)
FlexLove.endFrame()
end
@@ -174,8 +174,6 @@ function TestRetainedPropStability:test_multipleRetainedElementsWithVaryingProps
-- Both should return existing elements
luaunit.assertEquals(backdrop2.id, backdropId)
luaunit.assertEquals(window2.id, windowId)
luaunit.assertEquals(backdrop2, backdrop1)
luaunit.assertEquals(window2, window1)
FlexLove.endFrame()
end