This commit is contained in:
2026-11-05 09:57:11 -05:00
parent d34388bf2c
commit 89e392cc2e
81 changed files with 12410 additions and 1135 deletions
+7 -7
View File
@@ -132,8 +132,8 @@ test("habitat helper resolves qualified nodes and rejects unknown surfaces", fun
assert(not m.supports_species("unknown", "grass"))
assert(not m.supports_species("oak", false))
end)
test("ten exact catalogue species have real full-block trunks, leaves, and timber", function()
local f=loaded(); assert(table.concat(f.m.species_order,",")=="oak,birch,pine,willow,alder,beech,aspen,rowan,hazel,spruce")
test("thirteen exact catalogue species have real full-block trunks, leaves, and timber", function()
local f=loaded(); assert(table.concat(f.m.species_order,",")=="oak,birch,pine,willow,alder,beech,aspen,rowan,hazel,spruce,crab_apple,wild_cherry,field_maple")
for _, species in ipairs(f.m.species_order) do
local log=f.nodes["hearth:"..species.."_log"]
local leaf=f.nodes["hearth:"..species.."_leaves"]
@@ -169,8 +169,8 @@ test("geological stone remains useful masonry and canonical foundations", functi
assert(f.nodes[brick].after_place_node==f.construction.owner)
end
end)
test("all 40 terrain recipes have unique shapeless inputs including multiplicity", function()
local f=loaded(); assert(#f.crafts==40)
test("all 49 terrain recipes have unique shapeless inputs including multiplicity", function()
local f=loaded(); assert(#f.crafts==49)
local seen={}
for _, craft in ipairs(f.crafts) do
assert(craft.type=="shapeless")
@@ -356,8 +356,8 @@ test("world texture contract is explicit for every new node", function()
assert(image:match("^hearth_[a-z_]+%.png$"),image); textures[image]=true
end
end end
-- Five extra woods add log top/side, leaves and planks (20 textures).
assert(count(textures)==62, "unexpected world tile count "..count(textures))
assert(f.registrations()==51, "unexpected private node count "..f.registrations())
-- Thirteen woods each have their own end grain, bark, foliage and planks.
assert(count(textures)==74, "unexpected world tile count "..count(textures))
assert(f.registrations()==60, "unexpected private node count "..f.registrations())
end)
print("PASS " .. passed .. " biome/geology checks")