File: TreeSpec.hs

package info (click to toggle)
haskell-hspec-core 2.11.16-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 700 kB
  • sloc: haskell: 9,452; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (2)
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"