mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 05:54:21 +01:00
Discovered this one while working on #3322 It was a bit more elusive because the original error was essentially a red herring: ``` turso> CREATE INDEX idx ON "t t" (`a a`); × unexpected token at SourceSpan { offset: SourceOffset(22), length: 1 } ╭──── 1 │ CREATE INDEX idx ON "t t" (`a a`); · ┬ · ╰── here ╰──── help: expected [TK_LP] but found TK_ID ``` Reviewed-by: Preston Thorpe <preston@turso.tech> Closes #3345
Turso Testing
Testing Extensions
When adding tests for extensions, please follow these guidelines:
- Tests that verify the internal logic or behavior of a particular extension should go into
cli_tests/extensions.py. - Tests that verify how extensions interact with the database engine, such as virtual table handling, should be written
in TCL (see
vtab.testas an example).
To check which extensions are available in TCL, or to add a new one, refer to the tester.tcl file and look at the extension_map.