mirror of https://github.com/AMT-Cheif/drift.git
add suggested test(s)
This commit is contained in:
parent
f298a10636
commit
85ac74f69f
|
@ -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')),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue