diff options
Diffstat (limited to 'test/Xanthous/GameSpec.hs')
-rw-r--r-- | test/Xanthous/GameSpec.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Xanthous/GameSpec.hs b/test/Xanthous/GameSpec.hs index 9f30faca0c98..f9a9c543b90a 100644 --- a/test/Xanthous/GameSpec.hs +++ b/test/Xanthous/GameSpec.hs @@ -44,4 +44,10 @@ test (oextend f . oextend g) mh === oextend (f . oextend g) mh ] ] + , testGroup "Saving the game" + [ testProperty "forms a prism" $ isPrism saved + , testProperty "preserves the character ID" $ \gs -> + let Just gs' = loadGame $ saveGame gs + in gs' ^. character === gs ^. character + ] ] |