mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Added a character saving unit test.
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#ifdef UNIT_TESTS
|
#ifdef UNIT_TESTS
|
||||||
#include "anchored_mobs.dm"
|
#include "anchored_mobs.dm"
|
||||||
|
#include "character_saving.dm"
|
||||||
#include "component_tests.dm"
|
#include "component_tests.dm"
|
||||||
#include "reagent_id_typos.dm"
|
#include "reagent_id_typos.dm"
|
||||||
#include "reagent_recipe_collisions.dm"
|
#include "reagent_recipe_collisions.dm"
|
||||||
|
|||||||
8
code/modules/unit_tests/character_saving.dm
Normal file
8
code/modules/unit_tests/character_saving.dm
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/datum/unit_test/character_saving/Run()
|
||||||
|
try
|
||||||
|
var/datum/preferences/P = new
|
||||||
|
P.load_path("test")
|
||||||
|
P.load_character(0)
|
||||||
|
P.save_character()
|
||||||
|
catch(exception/e)
|
||||||
|
Fail("Failed to save and load character due to exception [e.name]")
|
||||||
Reference in New Issue
Block a user