You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/hls-eval-plugin/test/Main.hs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -74,29 +74,29 @@ tests =
74
74
evalInFile "T8.hs""-- >>> noFunctionWithThisName""-- Variable not in scope: noFunctionWithThisName"
75
75
evalInFile "T8.hs""-- >>> res = \"a\" + \"bc\""$
76
76
if
77
-
| ghcVersion ==GHC92->"-- No instance for (Num String) arising from a use of `+'\n-- In the expression: \"a\" + \"bc\"\n-- In an equation for `res': res = \"a\" + \"bc\""
77
+
| ghcVersion >=GHC92->"-- No instance for (Num String) arising from a use of `+'\n-- In the expression: \"a\" + \"bc\"\n-- In an equation for `res': res = \"a\" + \"bc\""
78
78
| ghcVersion ==GHC90->"-- No instance for (Num String) arising from a use of ‘+’"
79
79
|otherwise->"-- No instance for (Num [Char]) arising from a use of ‘+’"
80
80
evalInFile "T8.hs""-- >>> \"""-- lexical error in string/character literal at end of input"
81
81
evalInFile "T8.hs""-- >>> 3 `div` 0""-- divide by zero"-- The default for marking exceptions is False
82
82
, goldenWithEval "Applies file LANGUAGE extensions""T9""hs"
83
-
, goldenWithEval' "Evaluate a type with :kind!""T10""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
83
+
, goldenWithEval' "Evaluate a type with :kind!""T10""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
84
84
, goldenWithEval' "Reports an error for an incorrect type with :kind!""T11""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
85
-
, goldenWithEval' "Shows a kind with :kind""T12""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
85
+
, goldenWithEval' "Shows a kind with :kind""T12""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
86
86
, goldenWithEval' "Reports an error for an incorrect type with :kind""T13""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
87
87
, goldenWithEval "Returns a fully-instantiated type for :type""T14""hs"
88
88
, knownBrokenForGhcVersions [GHC92] "type +v does not work anymore with 9.2"$ goldenWithEval "Returns an uninstantiated type for :type +v, admitting multiple whitespaces around arguments""T15""hs"
89
89
, goldenWithEval "Returns defaulted type for :type +d, admitting multiple whitespaces around arguments""T16""hs"
90
-
, goldenWithEval' ":type reports an error when given with unknown +x option""T17""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
90
+
, goldenWithEval' ":type reports an error when given with unknown +x option""T17""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
91
91
, goldenWithEval "Reports an error when given with unknown command""T18""hs"
92
92
, goldenWithEval "Returns defaulted type for :type +d reflecting the default declaration specified in the >>> prompt""T19""hs"
93
93
, expectFailBecause "known issue - see a note in P.R. #361"$
94
-
goldenWithEval' ":type +d reflects the `default' declaration of the module""T20""hs" (if ghcVersion ==GHC92then"ghc92.expected"else"expected")
94
+
goldenWithEval' ":type +d reflects the `default' declaration of the module""T20""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
95
95
, testCase ":type handles a multilined result properly"$
0 commit comments