add suggested test(s)

This commit is contained in:
Markus Richter 2020-06-17 21:22:03 +02:00
parent f298a10636
commit 85ac74f69f
No known key found for this signature in database
GPG Key ID: D2EAD1C38ED66957
1 changed files with 16 additions and 0 deletions

View File

@ -15,4 +15,20 @@ void main() {
throwsA(isA<CumulatedTokenizerException>()),
);
});
test('scans identifiers with backticks', () {
expect(
Scanner('`SELECT`').scanTokens(),
contains(isA<IdentifierToken>()
.having((e) => e.identifier, 'identifier', 'SELECT')),
);
});
test('scans identifiers with double quotes', () {
expect(
Scanner('"SELECT"').scanTokens(),
contains(isA<IdentifierToken>()
.having((e) => e.identifier, 'identifier', 'SELECT')),
);
});
}