From 950497cddf6508fe2fcc51ea635b1f39267e2d13 Mon Sep 17 00:00:00 2001 From: Valeriia Date: Thu, 29 Jul 2021 17:43:27 +0300 Subject: [PATCH] Minor fixes in tests --- src/flow9/flow9.test.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/flow9/flow9.test.ts b/src/flow9/flow9.test.ts index bafd559a..6bf9b04e 100644 --- a/src/flow9/flow9.test.ts +++ b/src/flow9/flow9.test.ts @@ -42,8 +42,8 @@ testTokenization('flow9', [ { startIndex: 1, type: 'keyword.flow' }, { startIndex: 7, type: '' }, { startIndex: 8, type: 'identifier.flow' }, - { startIndex: 13, type: '' }, - { startIndex: 14, type: 'number.flow' } + { startIndex: 12, type: '' }, + { startIndex: 13, type: 'number.flow' } ] } ], @@ -131,19 +131,18 @@ testTokenization('flow9', [ [ { - line: '"""', - tokens: [ - { startIndex: 0, type: 'string.flow' }, - { startIndex: 1, type: 'string.escape.flow' }, - { startIndex: 3, type: 'string.flow' } - ] + line: '""', + tokens: [{ startIndex: 0, type: 'string.flow' }] } ], [ { - line: '""', - tokens: [{ startIndex: 0, type: 'string.invalid.flow' }] + line: '"""', + tokens: [ + { startIndex: 0, type: 'string.flow' }, + { startIndex: 2, type: 'string.invalid.flow' } + ] } ] ]);