File: TreeSpec.hs

package info (click to toggle)
haskell-hspec-core 2.11.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 656 kB
  • sloc: haskell: 8,945; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
module Test.Hspec.Core.TreeSpec (spec) where

import           Prelude ()
import           Helper

import           Test.Hspec.Core.Tree

spec :: Spec
spec = do
  describe "toModuleName" $ do
    it "derives a module name from a FilePath" $ do
      toModuleName "src/Foo/Bar.hs" `shouldBe` "Foo.Bar"