module Terminal.Game.DrawSpec where import Test.Hspec import Terminal.Game.Plane import Terminal.Game.Draw spec :: Spec spec = do describe "mergePlanes" $ do it "piles multiple planes together" $ mergePlanes (stringPlane "aa") [((1,2), cell 'b')] `shouldBe` stringPlane "ab" it "works in the middle too" $ mergePlanes (stringPlane "aaa\naaa\naaa") [((2,2), cell 'b')] `shouldBe` stringPlane "aaa\naba\naaa"