Added an extra test.

This commit is contained in:
Putnam
2020-08-29 23:02:18 -07:00
parent e97ef2d84d
commit 3097c790b8
+7 -1
View File
@@ -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]")