better type handling with lua_ls
This commit is contained in:
@@ -7,7 +7,7 @@ package.path = package.path .. ";?.lua"
|
||||
local luaunit = require("testing.luaunit")
|
||||
require("testing.loveStub") -- Required to mock LOVE functions
|
||||
local FlexLove = require("FlexLove")
|
||||
local Gui, enums = FlexLove.GUI, FlexLove.enums
|
||||
local Gui, enums = FlexLove.Gui, FlexLove.enums
|
||||
|
||||
-- Import required enums
|
||||
local Positioning = enums.Positioning
|
||||
@@ -748,9 +748,7 @@ function TestJustifyContent:testComplexNavigationBarLayout()
|
||||
luaunit.assertEquals(actionsSection.x + actionsSection.width, navbar.x + navbar.width)
|
||||
|
||||
-- Center menu should be positioned between logo and actions
|
||||
local expectedMenuX = logoSection.x
|
||||
+ logoSection.width
|
||||
+ ((navbar.width - logoSection.width - navMenu.width - actionsSection.width) / 2)
|
||||
local expectedMenuX = logoSection.x + logoSection.width + ((navbar.width - logoSection.width - navMenu.width - actionsSection.width) / 2)
|
||||
luaunit.assertEquals(navMenu.x, expectedMenuX)
|
||||
|
||||
-- Verify nested center alignment in menu items
|
||||
|
||||
Reference in New Issue
Block a user