diff --git a/test/behavesLikeSqlFormatter.ts b/test/behavesLikeSqlFormatter.ts index 120f999b6d..d8c90f5e0d 100644 --- a/test/behavesLikeSqlFormatter.ts +++ b/test/behavesLikeSqlFormatter.ts @@ -279,19 +279,4 @@ export default function behavesLikeSqlFormatter(format: FormatFn) { tbl; `); }); - - it('supports decimal values without leading digits', () => { - const result = format( - `SELECT employee_id FROM employees WHERE salary > .456 * 1000000 AND bonus < .0000239 * salary;` - ); - expect(result).toBe(dedent` - SELECT - employee_id - FROM - employees - WHERE - salary > .456 * 1000000 - AND bonus < .0000239 * salary; - `); - }); } diff --git a/test/features/numbers.ts b/test/features/numbers.ts index 75e6f93aea..186cef8b2b 100644 --- a/test/features/numbers.ts +++ b/test/features/numbers.ts @@ -51,4 +51,12 @@ export default function supportsNumbers(format: FormatFn) { 100. * b / SUM(a_s); `); }); + + it('supports decimal values without leading digits', () => { + const result = format(`SELECT .456 AS foo;`); + expect(result).toBe(dedent` + SELECT + .456 AS foo; + `); + }); }