Ruined
This commit is contained in:
@@ -95,11 +95,13 @@ test("callbacks, authorization, drops and geometry survive every variant", funct
|
||||
end
|
||||
end)
|
||||
test("claimed handplaced flora can recolor with no metadata access or harvest refill", function()
|
||||
data={succ_age="8412",succ_natural="1",succ_harvest_ready_at=tostring(now+86400),player_placed="1",owner="builder"}
|
||||
data={succ_age="8412",succ_natural="1",succ_birth_at="1700000000",succ_lifecycle_version="1",
|
||||
succ_seed_epoch=tostring(now+86400),succ_harvest_ready_at=tostring(now+86400),player_placed="1",owner="builder"}
|
||||
local reference=data
|
||||
put("spring_greens_patch"); season="Spring"; assert(seasons.reconcile(p))
|
||||
season="Winter"; assert(seasons.reconcile(p))
|
||||
assert(data==reference and data.succ_age=="8412" and data.player_placed=="1")
|
||||
assert(data.succ_birth_at=="1700000000" and data.succ_lifecycle_version=="1" and data.succ_seed_epoch==tostring(now+86400))
|
||||
assert(data.succ_harvest_ready_at==tostring(now+86400) and meta_writes==0)
|
||||
end)
|
||||
test("unloaded, ignore, protected and uncontrolled names cause no writes", function()
|
||||
@@ -182,7 +184,7 @@ test("actual botany factory installs all new policies before seasonal registrati
|
||||
end
|
||||
end
|
||||
end
|
||||
assert(count==62)
|
||||
assert(count==79)
|
||||
end)
|
||||
test("botany leaves diversity-owned taxa and block tree policies untouched", function()
|
||||
local diversity=dofile(target:gsub("[^/\\]+$","diversity.lua"))(hearth,api)
|
||||
|
||||
Reference in New Issue
Block a user