love2d-community / love-api

The whole LÖVE wiki in a Lua table.
http://love2d-community.github.io/love-api/
300 stars 48 forks source link

Add test to make sure there is a variants table #67

Closed rm-code closed 1 year ago

rm-code commented 6 years ago

For example love.window.restore caused some issues for love-atom, because the empty variants table was omitted.

        {
            name = 'restore',
            description = 'Restores the size and position of the window if it was minimized or maximized.',
            variants = {
                {}
            }
        },

@Positive07 Maybe you have some time to take a look at this? :)

pablomayobre commented 6 years ago

Would it be a good idea to just do #45 and make a simple test thingy that loops over what needs to be there?