@@ -189,30 +189,30 @@ completionTests =
189189 , testGroup " Data constructor"
190190 [ completionCommandTest
191191 " not imported"
192- [" module A where" , " import Text.Printf ()" , " ZeroPad" ]
193- (Position 2 4 )
192+ [" module A where" , " import Text.Printf ()" , " a = ZeroPad" ]
193+ (Position 2 8 )
194194 " ZeroPad"
195- [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " ZeroPad" ]
195+ [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " a = ZeroPad" ]
196196 , completionCommandTest
197197 " parent imported abs"
198- [" module A where" , " import Text.Printf (FormatAdjustment)" , " ZeroPad " ]
199- (Position 2 4 )
198+ [" module A where" , " import Text.Printf (FormatAdjustment)" , " a = ZeroP " ]
199+ (Position 2 8 )
200200 " ZeroPad"
201- [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " ZeroPad " ]
201+ [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " a = ZeroP " ]
202202 , completionNoCommandTest
203203 " parent imported all"
204- [" module A where" , " import Text.Printf (FormatAdjustment (..))" , " ZeroPad " ]
205- (Position 2 4 )
204+ [" module A where" , " import Text.Printf (FormatAdjustment (..))" , " a = ZeroP " ]
205+ (Position 2 8 )
206206 " ZeroPad"
207207 , completionNoCommandTest
208208 " already imported"
209- [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " ZeroPad " ]
210- (Position 2 4 )
209+ [" module A where" , " import Text.Printf (FormatAdjustment (ZeroPad))" , " a = ZeroP " ]
210+ (Position 2 8 )
211211 " ZeroPad"
212212 , completionNoCommandTest
213213 " function from Prelude"
214- [" module A where" , " import Data.Maybe ()" , " Nothing " ]
215- (Position 2 4 )
214+ [" module A where" , " import Data.Maybe ()" , " a = Nothi " ]
215+ (Position 2 8 )
216216 " Nothing"
217217 , completionCommandTest
218218 " type operator parent"
@@ -224,20 +224,20 @@ completionTests =
224224 , testGroup " Record completion"
225225 [ completionCommandTest
226226 " not imported"
227- [" module A where" , " import Text.Printf ()" , " FormatParse" ]
228- (Position 2 10 )
227+ [" module A where" , " import Text.Printf ()" , " a :: FormatParse" ]
228+ (Position 2 14 )
229229 " FormatParse"
230- [" module A where" , " import Text.Printf (FormatParse)" , " FormatParse" ]
230+ [" module A where" , " import Text.Printf (FormatParse)" , " a :: FormatParse" ]
231231 , completionCommandTest
232232 " parent imported"
233- [" module A where" , " import Text.Printf (FormatParse)" , " FormatParse" ]
234- (Position 2 10 )
233+ [" module A where" , " import Text.Printf (FormatParse)" , " a = FormatParse" ]
234+ (Position 2 14 )
235235 " FormatParse"
236- [" module A where" , " import Text.Printf (FormatParse (FormatParse))" , " FormatParse" ]
236+ [" module A where" , " import Text.Printf (FormatParse (FormatParse))" , " a = FormatParse" ]
237237 , completionNoCommandTest
238238 " already imported"
239- [" module A where" , " import Text.Printf (FormatParse (FormatParse))" , " FormatParse " ]
240- (Position 2 10 )
239+ [" module A where" , " import Text.Printf (FormatParse (FormatParse))" , " a = FormatP " ]
240+ (Position 2 14 )
241241 " FormatParse"
242242 ]
243243 , testGroup " Package completion"
0 commit comments