Skip to content

Commit

Permalink
Fix eval tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailrun committed May 17, 2021
1 parent 1d2458b commit 9360c7a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/hls-eval-plugin/test/testdata/T11.expected.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module T11 where

-- >>> :kind! a
-- Not in scope: type variable 'a'
-- Not in scope: type variable ‘a’
2 changes: 1 addition & 1 deletion plugins/hls-eval-plugin/test/testdata/T13.expected.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module T13 where

-- >>> :kind a
-- Not in scope: type variable 'a'
-- Not in scope: type variable ‘a’
2 changes: 1 addition & 1 deletion plugins/hls-eval-plugin/test/testdata/T17.expected.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module T17 where

-- >>> :type +no 42
-- parse error on input '+'
-- parse error on input ‘+’
2 changes: 1 addition & 1 deletion plugins/hls-eval-plugin/test/testdata/T8.expected.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module T8 where
-- Variable not in scope: noFunctionWithThisName

-- >>> "a" + "bc"
-- No instance for (Num [Char]) arising from a use of '+'
-- No instance for (Num [Char]) arising from a use of ‘+’

-- >>> "
-- lexical error in string/character literal at end of input
Expand Down
4 changes: 2 additions & 2 deletions plugins/hls-eval-plugin/test/testdata/TFlags.expected.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module TFlags where
Options apply only in the section where they are defined (unless they are in the setup section), so this will fail:
>>> class L a b c
Too many parameters for class 'L'
Too many parameters for class ‘L’
(Enable MultiParamTypeClasses to allow multi-parameter classes)
-}

Expand All @@ -29,7 +29,7 @@ Options apply to all tests in the same section after their declaration.
Not set yet:
>>> class D
No parameters for class 'D'
No parameters for class ‘D’
(Enable MultiParamTypeClasses to allow no-parameter classes)
Now it works:
Expand Down
2 changes: 2 additions & 0 deletions plugins/hls-eval-plugin/test/testdata/THaddock.expected.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module THaddock () where
"bc"
-}

double :: Num a => a -> a
double a = a + a
-- ^ Single line backward comments
-- >>> double 11
Expand All @@ -37,4 +38,5 @@ twice a = a ++ a
>>> IGNORED as it does not start on the first column
-}
five :: Integer
five = 5
2 changes: 2 additions & 0 deletions plugins/hls-eval-plugin/test/testdata/THaddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module THaddock () where
>>> "b"++"c"
-}

double :: Num a => a -> a
double a = a + a
-- ^ Single line backward comments
-- >>> double 11
Expand All @@ -32,4 +33,5 @@ twice a = a ++ a
>>> IGNORED as it does not start on the first column
-}
five :: Integer
five = 5
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ module TPlain where
>>> IGNORED as it does not start on the first column
-}
five :: Integer
five = 5
1 change: 1 addition & 0 deletions plugins/hls-eval-plugin/test/testdata/TPlainComment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ module TPlain where
>>> IGNORED as it does not start on the first column
-}
five :: Integer
five = 5

0 comments on commit 9360c7a

Please # to comment.