feat(markarbejde): bygget-over marker (groundType NONE / ingen markjord — stald, biogas, gårdsplads) er ikke med i oversigten eller arbejdet (v1.29.0.0)
This commit is contained in:
@@ -82,5 +82,17 @@ field.fieldState = {fruitTypeIndex = 0, growthState = 0}
|
||||
cropAt = function() return nil end
|
||||
info = rescan()
|
||||
check("PG9 ingen afgrøde = bar uden stub", info and info.kind .. "/" .. tostring(info.stubbleOf), "bare/nil")
|
||||
-- PG10-12: bygget-over mark (fields.xml: groundType NONE — gårdsplads/stald/biogas) er ikke med i listen
|
||||
field.fieldState = {fruitTypeIndex = 0, growthState = 0, groundType = 0}
|
||||
info = rescan()
|
||||
check("PG10 ingen markjord = kan ikke dyrkes", info and info.cultivable, false)
|
||||
check("PG10 ikke i marklisten", #ADFields.list(), 0)
|
||||
field.fieldState = {fruitTypeIndex = MAIZE, growthState = 2, groundType = 7}
|
||||
cropAt = function(x) return MAIZE end
|
||||
info = rescan()
|
||||
check("PG11 markjord = kan dyrkes", info and info.cultivable, true)
|
||||
check("PG11 i marklisten", #ADFields.list(), 1)
|
||||
check("PG12 ingen punkter på markjord", ADFields.isCultivable(nil, 0), false)
|
||||
|
||||
print(failures == 0 and "\nALLE TESTS OK" or ("\n" .. failures .. " FEJL"))
|
||||
os.exit(failures == 0 and 0 or 1)
|
||||
|
||||
Reference in New Issue
Block a user