Skip to content

Commit 6622304

Browse files
committed
Add failing test for percentage values
1 parent 4ef40e0 commit 6622304

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/duckdb.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ describe('DuckDBFormatter', () => {
168168
`);
169169
});
170170

171+
// TODO: This currently conflicts with the modulo operator
172+
it.skip('formats percentage value in LIMIT clause', () => {
173+
expect(format('SELECT * FROM foo LIMIT 10%;')).toBe(dedent`
174+
SELECT
175+
*
176+
FROM
177+
foo
178+
LIMIT
179+
10%;
180+
`);
181+
});
182+
171183
it('formats TIMESTAMP WITH TIME ZONE syntax', () => {
172184
expect(
173185
format(`

0 commit comments

Comments
 (0)