mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Fix/batch parser tests (#256)
* changing files to CRLF to change all files to LF * changed all files to LF * build on appveyor for the PR
This commit is contained in:
@@ -138,7 +138,6 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.BatchParser
|
|||||||
{
|
{
|
||||||
CopyToOutput(FilesLocation, "TS-err-cycle1.txt");
|
CopyToOutput(FilesLocation, "TS-err-cycle1.txt");
|
||||||
CopyToOutput(FilesLocation, "cycle2.txt");
|
CopyToOutput(FilesLocation, "cycle2.txt");
|
||||||
|
|
||||||
Start("err-blockComment");
|
Start("err-blockComment");
|
||||||
Start("err-blockComment2");
|
Start("err-blockComment2");
|
||||||
Start("err-varDefinition");
|
Start("err-varDefinition");
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
Lexer tokenized input:
|
Lexer tokenized input:
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Tokens:
|
Tokens:
|
||||||
=======
|
=======
|
||||||
[ERROR: code CommentNotTerminated at 1:1 [0] - 1:32 [31] in TS-err-blockComment.txt, message: Missing end comment mark '*/'.]
|
[ERROR: code CommentNotTerminated at 1:1 [0] - 1:32 [31] in TS-err-blockComment.txt, message: Missing end comment mark '*/'.]
|
||||||
|
|
||||||
[PARSER ERROR: code CommentNotTerminated at 1:1 [0] - 1:32 [31] in TS-err-blockComment.txt, token text: /* unterminated block comment *, message: Missing end comment mark '*/'.]
|
[PARSER ERROR: code CommentNotTerminated at 1:1 [0] - 1:32 [31] in TS-err-blockComment.txt, token text: /* unterminated block comment *, message: Missing end comment mark '*/'.]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
Lexer tokenized input:
|
Lexer tokenized input:
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Tokens:
|
Tokens:
|
||||||
=======
|
=======
|
||||||
[ERROR: code CommentNotTerminated at 1:1 [0] - 1:31 [30] in TS-err-blockComment2.txt, message: Missing end comment mark '*/'.]
|
[ERROR: code CommentNotTerminated at 1:1 [0] - 1:31 [30] in TS-err-blockComment2.txt, message: Missing end comment mark '*/'.]
|
||||||
|
|
||||||
[PARSER ERROR: code CommentNotTerminated at 1:1 [0] - 1:31 [30] in TS-err-blockComment2.txt, token text: /* unterminated block comment , message: Missing end comment mark '*/'.]
|
[PARSER ERROR: code CommentNotTerminated at 1:1 [0] - 1:31 [30] in TS-err-blockComment2.txt, token text: /* unterminated block comment , message: Missing end comment mark '*/'.]
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
Lexer tokenized input:
|
Lexer tokenized input:
|
||||||
======================
|
======================
|
||||||
[Setvar::setvar][WS: ]
|
[Setvar::setvar][WS: ]
|
||||||
Tokens:
|
Tokens:
|
||||||
=======
|
=======
|
||||||
[Token Setvar at TS-err-varDefinition.txt(1:1 [0] - 1:8 [7]): ':setvar']
|
[Token Setvar at TS-err-varDefinition.txt(1:1 [0] - 1:8 [7]): ':setvar']
|
||||||
[Token Whitespace at TS-err-varDefinition.txt(1:8 [7] - 1:9 [8]): ' ']
|
[Token Whitespace at TS-err-varDefinition.txt(1:8 [7] - 1:9 [8]): ' ']
|
||||||
[ERROR: code UnrecognizedToken at 1:9 [8] - 1:13 [12] in TS-err-varDefinition.txt, message: Incorrect syntax was encountered while parsing '0var'.]
|
[ERROR: code UnrecognizedToken at 1:9 [8] - 1:13 [12] in TS-err-varDefinition.txt, message: Incorrect syntax was encountered while parsing '0var'.]
|
||||||
|
|
||||||
[PARSER ERROR: code UnrecognizedToken at 1:9 [8] - 1:13 [12] in TS-err-varDefinition.txt, token text: 0var, message: Incorrect syntax was encountered while parsing '0var'.]
|
[PARSER ERROR: code UnrecognizedToken at 1:9 [8] - 1:13 [12] in TS-err-varDefinition.txt, token text: 0var, message: Incorrect syntax was encountered while parsing '0var'.]
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
Lexer tokenized input:
|
Lexer tokenized input:
|
||||||
======================
|
======================
|
||||||
[Setvar::setvar][WS: ][T:a][WS: ]
|
[Setvar::setvar][WS: ][T:a][WS: ]
|
||||||
Tokens:
|
Tokens:
|
||||||
=======
|
=======
|
||||||
[Token Setvar at TS-err-varDefinition5.txt(1:1 [0] - 1:8 [7]): ':setvar']
|
[Token Setvar at TS-err-varDefinition5.txt(1:1 [0] - 1:8 [7]): ':setvar']
|
||||||
[Token Whitespace at TS-err-varDefinition5.txt(1:8 [7] - 1:9 [8]): ' ']
|
[Token Whitespace at TS-err-varDefinition5.txt(1:8 [7] - 1:9 [8]): ' ']
|
||||||
[Token Text at TS-err-varDefinition5.txt(1:9 [8] - 1:10 [9]): 'a']
|
[Token Text at TS-err-varDefinition5.txt(1:9 [8] - 1:10 [9]): 'a']
|
||||||
[Token Whitespace at TS-err-varDefinition5.txt(1:10 [9] - 1:11 [10]): ' ']
|
[Token Whitespace at TS-err-varDefinition5.txt(1:10 [9] - 1:11 [10]): ' ']
|
||||||
[ERROR: code StringNotTerminated at 1:11 [10] - 1:31 [30] in TS-err-varDefinition5.txt, message: Unclosed quotation mark after the character string.]
|
[ERROR: code StringNotTerminated at 1:11 [10] - 1:31 [30] in TS-err-varDefinition5.txt, message: Unclosed quotation mark after the character string.]
|
||||||
|
|
||||||
[PARSER ERROR: code StringNotTerminated at 1:11 [10] - 1:31 [30] in TS-err-varDefinition5.txt, token text: "unterminated string, message: Unclosed quotation mark after the character string.]
|
[PARSER ERROR: code StringNotTerminated at 1:11 [10] - 1:31 [30] in TS-err-varDefinition5.txt, token text: "unterminated string, message: Unclosed quotation mark after the character string.]
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
Lexer tokenized input:
|
Lexer tokenized input:
|
||||||
======================
|
======================
|
||||||
[T:Unterminated variable reference (at EOF): $(var][Eof:]
|
[T:Unterminated variable reference (at EOF): $(var][Eof:]
|
||||||
Tokens:
|
Tokens:
|
||||||
=======
|
=======
|
||||||
[Token Text at TS-err-variableRef4.txt(1:1 [0] - 1:48 [47]): 'Unterminated variable reference (at EOF): $(var']
|
[Token Text at TS-err-variableRef4.txt(1:1 [0] - 1:48 [47]): 'Unterminated variable reference (at EOF): $(var']
|
||||||
[Token Eof at TS-err-variableRef4.txt(1:48 [47] - 1:48 [47]): '']
|
[Token Eof at TS-err-variableRef4.txt(1:48 [47] - 1:48 [47]): '']
|
||||||
|
|
||||||
[PARSER ERROR: code InvalidVariableName at 1:43 [42] - 1:48 [47] in TS-err-variableRef4.txt, token text: $(var, message: Incorrect syntax was encountered while parsing '$(var'.]
|
[PARSER ERROR: code InvalidVariableName at 1:43 [42] - 1:48 [47] in TS-err-variableRef4.txt, token text: $(var, message: Incorrect syntax was encountered while parsing '$(var'.]
|
||||||
|
|||||||
Reference in New Issue
Block a user