maybe this-a-work?

This commit is contained in:
Coolrune206
2022-11-20 00:15:22 +10:00
parent d991bf3f1c
commit 6b9b4a43a1
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@
#include "log_format.dm"
#include "map_templates.dm"
#include "map_tests.dm"
#include "origin_tech.dm"
#include "purchase_reference_test.dm"
#include "reagent_id_typos.dm"
#include "rustg_version.dm"
+11
View File
@@ -0,0 +1,11 @@
/datum/unit_test/origin_tech_test/Run()
var/regex/nums = regex("^\[0-9]+")
for(var/tpath in subtypesof(/obj/item))
var/obj/item/I = tpath
var/tech_str = initial(I.origin_tech)
var/list/tech_list = params2list(tech_str)
for(var/k in tech_list)
if(length(nums.Replace(tech_list[k], "")) > 0)
Fail("Invalid origin tech for [tpath]: [tech_str]")