mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Improvement for trash food unit test (#93473)
## About The Pull Request `TEST_ASSERT` returns on failure, in a loop like this test that means if you encounter a single failure the whole test fails immediately. We want every failure listed, `TEST_FAIL` fails without returning. ## Why It's Good For The Game I thought my code base had one failure but it didn't it had 60+
This commit is contained in:
@@ -30,5 +30,5 @@
|
||||
continue
|
||||
if(trash in food_trash_blacklist)
|
||||
continue
|
||||
|
||||
TEST_ASSERT(food_trash[trash], "[food] must include its trash_type for loot table /obj/effect/spawner/random/trash/food_packaging or be added to this unit tests food_trash_blacklist")
|
||||
if(!food_trash[trash])
|
||||
TEST_FAIL("[food] must include its trash_type for loot table /obj/effect/spawner/random/trash/food_packaging or be added to this unit tests food_trash_blacklist")
|
||||
|
||||
Reference in New Issue
Block a user