module ItemsSpec (spec) where

import Test.Hspec
import Items

import Data.Map (fromList)

spec = do
    describe "changeItem" $
        it "changes something about the item" $
            changeItem "open" (const "closed")
                Item { itemName = "box", itemInfo = fromList [("open", "open")], itemActions=[]} 
            `shouldBe` 
                Item { itemName = "box", itemInfo = fromList [("open", "closed")], itemActions=[]}
