From 3097c790b842b9e78b41531139d749dce1cf7918 Mon Sep 17 00:00:00 2001 From: Putnam Date: Sat, 29 Aug 2020 23:02:18 -0700 Subject: [PATCH] Added an extra test. --- code/modules/unit_tests/character_saving.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/unit_tests/character_saving.dm b/code/modules/unit_tests/character_saving.dm index 256be59184..90767e3393 100644 --- a/code/modules/unit_tests/character_saving.dm +++ b/code/modules/unit_tests/character_saving.dm @@ -2,7 +2,13 @@ try var/datum/preferences/P = new P.load_path("test") - P.load_character(0) + P.features["flavor_text"] = "Foo" + P.features["ooc_notes"] = "Bar" P.save_character() + P.load_character() + if(P.features["flavor_text"] != "Foo") + Fail("Flavor text is failing to save.") + if(P.features["ooc_notes"] != "Bar") + Fail("OOC text is failing to save.") catch(exception/e) Fail("Failed to save and load character due to exception [e.name]")