File: Group.hs

package info (click to toggle)
haskell-hdf5 1.8.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 876 kB
  • sloc: haskell: 2,515; ansic: 479; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE OverloadedStrings #-}

module Spec.Group ( describeGroup ) where

import           Test.Hspec

import           Bindings.HDF5.Core    (IndexType (..), IterOrder (..))
import qualified Bindings.HDF5.Link    as L

import           Spec.Util

-- | Describe the H5G Group interface
describeGroup :: Spec
describeGroup = do
  around (withGroup "group1") $ do
    it "can create group at top-level" $ \file -> do
      name <- L.getLinkNameByIdx file "/" ByName Increasing 0 Nothing
      name `shouldBe` "group1"

  -- TODO : test lookup non-existent group