--!strict return function(budget: any, config: any, hints: any) assert(budget.profile(true, false) == config.Mobile) assert(budget.profile(true, true) == config.Desktop) assert(budget.particles(20, .4) == 8 and budget.particles(0, .4) == 0) assert(config.Mobile.burstSlots <= config.Mobile.maxEmitters and config.Desktop.burstSlots <= config.Desktop.maxEmitters) assert(utf8.len(hints.compact(string.rep("я", 100))) == config.HintLimit) assert(hints.compact("Одна\nстрока") == "Одна строка") end