cursor-gen-0.0.0.0: test/Cursor/Simple/Tree/InsertSpec.hs
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Cursor.Simple.Tree.InsertSpec
( spec
) where
import Test.Hspec
import Test.Validity
import Cursor.Simple.Tree hiding (TreeCursor)
import Cursor.Simple.Tree.Gen ()
spec :: Spec
spec = do
describe "treeCursorInsert" $ do
it "produces valids on valids" $
producesValidsOnValids2 $ treeCursorInsert @Double @Double
it "inserts the element" pending
describe "treeCursorInsertAndSelect" $ do
it "produces valids on valids" $
producesValidsOnValids2 $ treeCursorInsertAndSelect @Double
it "inserts and select the element" pending
describe "treeCursorAppend" $ do
it "produces valids on valids" $
producesValidsOnValids2 $ treeCursorAppend @Double @Double
it "appends the element" pending
describe "treeCursorAppendAndSelect" $ do
it "produces valids on valids" $
producesValidsOnValids2 $ treeCursorAppendAndSelect @Double
it "appends and select the element" pending
describe "treeCursorAddChildAtPos" $ do
it "produces valid cursors " $
producesValidsOnValids3 $ treeCursorAddChildAtPos @Double @Double
it
"adds a tree at the given index in the children of the current node"
pending
describe "treeCursorAddChildAtStart" $ do
it "produces valid cursors " $
producesValidsOnValids2 $ treeCursorAddChildAtStart @Double @Double
it
"adds a tree at the start of the children of the current node"
pending
describe "treeCursorAddChildAtEnd" $ do
it "produces valid cursors " $
producesValidsOnValids2 $ treeCursorAddChildAtEnd @Double @Double
it "adds a tree at the end of the children of the current node" pending