forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAutoSpec.hs
54 lines (46 loc) · 1.61 KB
/
AutoSpec.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}
module CodeAction.AutoSpec where
import Ide.Plugin.Tactic.Types
import Test.Hspec
import Utils
spec :: Spec
spec = do
let autoTest = goldenTest Auto ""
describe "golden tests" $ do
autoTest 11 8 "AutoSplitGADT.hs"
autoTest 2 11 "GoldenEitherAuto.hs"
autoTest 4 12 "GoldenJoinCont.hs"
autoTest 3 11 "GoldenIdentityFunctor.hs"
autoTest 7 11 "GoldenIdTypeFam.hs"
autoTest 2 15 "GoldenEitherHomomorphic.hs"
autoTest 2 8 "GoldenNote.hs"
autoTest 2 12 "GoldenPureList.hs"
autoTest 2 12 "GoldenListFmap.hs"
autoTest 2 13 "GoldenFromMaybe.hs"
autoTest 2 10 "GoldenFoldr.hs"
autoTest 2 8 "GoldenSwap.hs"
autoTest 4 11 "GoldenFmapTree.hs"
autoTest 7 13 "GoldenGADTAuto.hs"
autoTest 2 12 "GoldenSwapMany.hs"
autoTest 4 12 "GoldenBigTuple.hs"
autoTest 2 10 "GoldenShow.hs"
autoTest 2 15 "GoldenShowCompose.hs"
autoTest 2 8 "GoldenShowMapChar.hs"
autoTest 7 8 "GoldenSuperclass.hs"
autoTest 2 12 "GoldenSafeHead.hs"
autoTest 25 13 "GoldenArbitrary.hs"
autoTest 2 12 "FmapBoth.hs"
autoTest 7 8 "RecordCon.hs"
autoTest 6 8 "NewtypeRecord.hs"
autoTest 2 14 "FmapJoin.hs"
autoTest 2 9 "Fgmap.hs"
autoTest 4 19 "FmapJoinInLet.hs"
failing "flaky in CI" $
autoTest 2 11 "GoldenApplicativeThen.hs"
failing "not enough auto gas" $
autoTest 5 18 "GoldenFish.hs"