Skip to content

Commit

Permalink
Final (?) tests fixes #8, pretty please with cherry on top, please ha…
Browse files Browse the repository at this point in the history
…ve mercy
  • Loading branch information
vzarytovskii committed Aug 17, 2023
1 parent 5118993 commit 1a6d162
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// #Conformance #DataExpressions #Query
// DevDiv:210830, groupValBy with poor diagnostics
//<Expects status="error" span="(8,7-8,17)" id="FS3099">'groupValBy' is used with an incorrect number of arguments. This is a custom operation in this query or computation expression. Expected 2 argument(s), but given 3.</Expects>
//<Expects status="error" span="(8,7-8,33)" id="FS0001">This expression was expected to have type.+'System\.Linq\.IGrouping<'a,'b>'.+but here has type.+'unit'</Expects>
//<Expects status="error" span="(9,7-9,17)" id="FS3099">.+</Expects>
//<Expects status="error" span="(9,7-9,33)" id="FS0001">This expression was expected to have type.+'System\.Linq\.IGrouping<'a,'b>'.+but here has type.+'unit'</Expects>
let words = ["blueberry"; "chimpanzee"; ]
let wordGroups =
query {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// #Regression #Conformance #LexicalAnalysis
// Regression test for FSHARP1.0:1561
// The OCaml (** *) feature is now gone, so this test will be a negative test from now on.
//<Expects status="error" span="(15,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(10:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(15,1)" id="FS0010">Incomplete structured construct at or before this point in binding$</Expects>
//<Expects status="error" span="(10,10)" id="FS0516">End of file in comment begun at or before here$</Expects>
//<Expects status="error" span="(14,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(9:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(14,1)" id="FS0010">Incomplete structured construct at or before this point in binding$</Expects>
//<Expects status="error" span="(9,10)" id="FS0516">End of file in comment begun at or before here$</Expects>


let y6 = (** This is a comment with (***) 6 (**)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// FSB 2150, Offside rule for #light code should set offside to left of accessibility modifier if present

//<Expects status="error" span="(18,5-18,8)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(17:5\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(18,5-18,8)" id="FS3524">Expecting expression\.$</Expects>
//<Expects status="error" span="(18,5-18,8)" id="FS3524">Expecting expression$</Expects>
//<Expects status="error" span="(20,5-20,6)" id="FS0010">Unexpected symbol '{' in member definition$</Expects>

open System
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Regression test for DevDiv:64339
// Note that the bug still repros in CHK/DBG bits - we will knownfail it
//<Expects status="error" span="(8,25-8,29)" id="FS0010">Unexpected keyword 'lazy' in type definition$</Expects>
//<Expects status="error" span="(11,29-11,33)" id="FS0010">Unexpected keyword 'lazy'.*</Expects>
//<Expects status="error" span="(11,29-11,33)" id="FS0010">Unexpected keyword 'lazy'.+</Expects>

// 5 elements -> ok
type Ok(a, b, c, d, e : lazy<int>) = class end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Regression test for DevDiv:64339
// Note that the bug still repros in CHK/DBG bits - we will knownfail it
//<Expects status="error" span="(8,25-8,29)" id="FS0010">Unexpected keyword 'lazy' in type definition$</Expects>
//<Expects status="error" span="(8,25-8,29)" id="FS0010">Unexpected keyword 'lazy'.*</Expects>
//<Expects status="error" span="(8,25-8,29)" id="FS0010">.+</Expects>

// 5 elements -> ok
type Ok(a, b, c, d, e : lazy<int>) = class end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #Diagnostics
// <Expects status="error" span="(8,1-8,7)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(6:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
// <Expects status="error" span="(8,1-8,7)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(5:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
// Note: this is now a positive test (see DevDiv:258510)

type C =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #Diagnostics
//<Expects status="error" span="(5,1-5,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(5:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(5,1-5,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(4:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(4,6-4,8)" id="FS0547">A type definition requires one or more members or other declarations\. If you intend to define an empty class, struct or interface, then use 'type \.\.\. = class end', 'interface end' or 'struct end'\.$</Expects>
type C() =
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #Diagnostics
//<Expects status="error" span="(8,1-8,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(9:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(8,1-8,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(7:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(7,6-7,9)" id="FS0547">A type definition requires one or more members or other declarations\. If you intend to define an empty class, struct or interface, then use 'type \.\.\. = class end', 'interface end' or 'struct end'\.$</Expects>
//<Expects status="error" span="(4,1-4,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(3:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(3,6-3,8)" id="FS0547">A type definition requires one or more members or other declarations\. If you intend to define an empty class, struct or interface, then use 'type \.\.\. = class end', 'interface end' or 'struct end'\.$</Expects>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #Diagnostics
//<Expects status="error" span="(7,1-7,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(7:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(7,1-7,1)" id="FS0058">Possible incorrect indentation: this token is offside of context started at position \(6:1\)\. Try indenting this token further or using standard formatting conventions\.$</Expects>
//<Expects status="error" span="(6,6-6,8)" id="FS0547">A type definition requires one or more members or other declarations\. If you intend to define an empty class, struct or interface, then use 'type \.\.\. = class end', 'interface end' or 'struct end'\.$</Expects>


Expand Down

0 comments on commit 1a6d162

Please sign in to comment.