Update oaks_lab_last_ball_bug601.lua

This commit is contained in:
bryanthaboi
2026-09-28 14:40:18 -04:00
parent a98c0d2a0a
commit f7a8014fdb
+5 -3
View File
@@ -25,7 +25,7 @@ package.path = "./?.lua;./?/init.lua;" .. package.path
local T = require("tests.harness")
local MapScripts = require("src.script.MapScripts")
local generatedText = dofile("data/generated/text.lua")
local textOk, generatedText = pcall(dofile, "data/generated/text.lua")
local contribution = dofile("data/scripts/oaks_lab.lua")
local problems = MapScripts.validateContribution(contribution)
@@ -90,8 +90,10 @@ T.eq(#offers, 0, "no starter offer after the pick")
local box = concat(texts)
T.check(box:find("_OaksLabLastMonText", 1, true) ~= nil,
"leftover ball uses the extracted last-mon text")
T.eq(generatedText._OaksLabLastMonText, "That's PROF.OAK's\nlast POKéMON!{DONE}",
"extracted last-mon text keeps the canonical POKéMON capitalization")
if textOk and type(generatedText) == "table" then
T.eq(generatedText._OaksLabLastMonText, "That's PROF.OAK's\nlast POKéMON!{DONE}",
"extracted last-mon text keeps the canonical POKéMON capitalization")
end
T.check(box:find("Those are", 1, true) == nil,
"leftover ball no longer says 'Those are POKé BALLs'")