Skip to content

Commit ecd99dc

Browse files
authored
Refactor test names in dialect tests (#15)
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
1 parent 753b55b commit ecd99dc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎tests/dialects/databricks.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
const databricks = dialects.databricks;
1313

1414
describe('Databricks - Identifiers and Strings', () => {
15-
test('test_databricks_identifiers', () => {
15+
test('parse_databricks_identifiers', () => {
1616
// Backtick-delimited identifiers
1717
parseOne('SELECT `Ä`', databricks);
1818
parseOne('SELECT `col name with spaces`', databricks);
@@ -25,7 +25,7 @@ describe('Databricks - Identifiers and Strings', () => {
2525
});
2626

2727
describe('Databricks - EXISTS Function', () => {
28-
test('test_databricks_exists', () => {
28+
test('parse_databricks_exists', () => {
2929
// EXISTS as a function (not a keyword)
3030
parseOne('SELECT EXISTS(array(1, 2, 3), x -> x IS NULL)', databricks);
3131
parseOne('SELECT EXISTS(col, x -> x > 5) FROM my_table', databricks);
@@ -36,7 +36,7 @@ describe('Databricks - EXISTS Function', () => {
3636
});
3737

3838
describe('Databricks - Lambda Functions', () => {
39-
test('test_databricks_lambdas', () => {
39+
test('parse_databricks_lambdas', () => {
4040
// Arrow syntax for lambda parameters
4141
parseOne('SELECT array_sort(array(5, 3, 1), (x, y) -> x - y)', databricks);
4242

@@ -59,7 +59,7 @@ describe('Databricks - Lambda Functions', () => {
5959
});
6060

6161
describe('Databricks - VALUES Clause', () => {
62-
test('test_values_clause', () => {
62+
test('parse_values_clause', () => {
6363
// VALUES clause for row constructors
6464
parseOne('VALUES ("one", 1), ("two", 2)', databricks);
6565
parseOne("VALUES ('a', 1), ('b', 2), ('c', 3)", databricks);
@@ -108,7 +108,7 @@ describe('Databricks - STRUCT Function', () => {
108108
});
109109

110110
describe('Databricks - TIMESTAMP_NTZ', () => {
111-
test('data_type_timestamp_ntz', () => {
111+
test('parse_timestamp_ntz', () => {
112112
// TIMESTAMP_NTZ literal syntax
113113
parseOne("SELECT TIMESTAMP_NTZ '2025-03-29T18:52:00'", databricks);
114114
parseOne("SELECT TIMESTAMP_NTZ '2025-01-26 12:00:00'", databricks);

‎tests/dialects/oracle.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import {
1212
const oracle = dialects.oracle;
1313

1414
describe('Oracle - Operator Precedence', () => {
15-
test('muldiv_have_higher_precedence_than_strconcat', () => {
15+
test('parse_muldiv_higher_precedence_than_strconcat', () => {
1616
// Test that * and / have higher precedence than ||
1717
const sql = "SELECT 3 / 5 || 'asdf' || 7 * 9 FROM dual";
1818
const stmt = parseOne(sql, oracle);
1919
expect(stmt).toBeDefined();
2020
});
2121

22-
test('plusminus_have_same_precedence_as_strconcat', () => {
22+
test('parse_plusminus_same_precedence_as_strconcat', () => {
2323
// Test that +, -, and || have the same precedence and are left-associative
2424
const sql = "SELECT 3 + 5 || '.3' || 7 - 9 FROM dual";
2525
const stmt = parseOne(sql, oracle);

0 commit comments

Comments
 (0)