File: InfoSpec.hs

package info (click to toggle)
haskell-doctest 0.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 708 kB
  • sloc: haskell: 3,428; ansic: 3; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module InfoSpec (spec) where

import           Imports

import           Test.Hspec

import           System.Process

import           Info (formatInfo)
import           Interpreter (ghc)

spec :: Spec
spec = do
  describe "formatInfo" $ do
    it "formats --info output" $ do
      info <- readProcess ghc ["--info"] ""
      formatInfo (read info) `shouldBe` info