@@ -23,7 +23,6 @@ main = defaultTestRunner test
23
23
alternateNumberFormatPlugin :: PluginDescriptor IdeState
24
24
alternateNumberFormatPlugin = AlternateNumberFormat. descriptor mempty " alternateNumberFormat"
25
25
26
-
27
26
-- NOTE: For whatever reason, this plugin does not play nice with creating Code Actions on time.
28
27
-- As a result tests will mostly pass if `import Prelude` is added at the top. We (mostly fendor) surmise this has something
29
28
-- to do with how
@@ -37,36 +36,18 @@ test = testGroup "alternateNumberFormat" [
37
36
, codeActionFloatHex " TFracDtoHF" 4 13
38
37
, codeActionDecimal " TIntHtoD" 3 13
39
38
, codeActionDecimal " TFracHFtoD" 4 13
40
- , codeActionProperties " TFindLiteralIntPattern" [(3 , 25 ), (4 ,25 )] $ \ actions -> do
39
+ , codeActionProperties " TFindLiteralIntPattern" [(4 , 25 ), (5 ,25 )] $ \ actions -> do
41
40
liftIO $ length actions @?= 4
42
- , codeActionProperties " TFindLiteralIntCase" [(3 , 29 )] $ \ actions -> do
41
+ , codeActionProperties " TFindLiteralIntCase" [(4 , 29 )] $ \ actions -> do
43
42
liftIO $ length actions @?= 2
44
- , codeActionProperties " TFindLiteralIntCase2" [(4 , 21 )] $ \ actions -> do
43
+ , codeActionProperties " TFindLiteralIntCase2" [(5 , 21 )] $ \ actions -> do
45
44
liftIO $ length actions @?= 2
46
- , codeActionProperties " TFindLiteralDoReturn" [(5 , 10 )] $ \ actions -> do
45
+ , codeActionProperties " TFindLiteralDoReturn" [(6 , 10 )] $ \ actions -> do
47
46
liftIO $ length actions @?= 2
48
- , codeActionProperties " TFindLiteralDoLet" [(5 , 13 ), (6 , 13 )] $ \ actions -> do
47
+ , codeActionProperties " TFindLiteralDoLet" [(6 , 13 ), (7 , 13 )] $ \ actions -> do
49
48
liftIO $ length actions @?= 4
50
- , codeActionProperties " TFindLiteralList" [(3 , 28 )] $ \ actions -> do
51
- liftIO $ length actions @?= 2
52
- , codeActionProperties " TExpectNoBinaryFormat" [(3 , 12 )] $ \ actions -> do
53
- liftIO $ length actions @?= 2
54
- liftIO $ actions `doesNotContain` binaryRegex @? " Contains binary codeAction"
55
- , codeActionProperties " TExpectBinaryFormat" [(4 , 10 )] $ \ actions -> do
56
- liftIO $ length actions @?= 3
57
- liftIO $ actions `contains` binaryRegex @? " Does not contain binary codeAction"
58
- , codeActionProperties " TExpectNoHexFloatFormat" [(3 , 14 )] $ \ actions -> do
59
- liftIO $ length actions @?= 1
60
- liftIO $ actions `doesNotContain` hexFloatRegex @? " Contains hex float codeAction"
61
- , codeActionProperties " TExpectHexFloatFormat" [(4 , 12 )] $ \ actions -> do
62
- liftIO $ length actions @?= 2
63
- liftIO $ actions `contains` hexFloatRegex @? " Does not contain hex float codeAction"
64
- , codeActionProperties " TExpectNoNumDecimalFormat" [(3 , 16 )] $ \ actions -> do
49
+ , codeActionProperties " TFindLiteralList" [(4 , 28 )] $ \ actions -> do
65
50
liftIO $ length actions @?= 2
66
- liftIO $ actions `doesNotContain` numDecimalRegex @? " Contains numDecimal codeAction"
67
- , codeActionProperties " TExpectNumDecimalFormat" [(4 , 14 )] $ \ actions -> do
68
- liftIO $ length actions @?= 5
69
- liftIO $ actions `contains` numDecimalRegex @? " Contains numDecimal codeAction"
70
51
, conversions
71
52
]
72
53
0 commit comments