Skip to content

Commit 9a7e35f

Browse files
committed
Add expression unit tests (62 tests)
Created tests/expression_tests.cpp covering: - BinaryExpr: arithmetic (+,-,*,/), comparisons (=,<>,<,<=,>,>=), logical (AND,OR) - UnaryExpr: negation (-), NOT - ColumnExpr: simple, qualified, not found, null tuple - ConstantExpr: int64, float64, text, bool, null - ParameterExpr: binding, null params - FunctionExpr: basic, distinct, multiple args - InExpr: IN, NOT IN - IsNullExpr: IS NULL, IS NOT NULL - Clone tests for all expression types - to_string tests for all expression types - Complex expressions (arithmetic and logical) - Expression type queries Note: Division (/) always returns float64 per expression.cpp implementation
1 parent d1294e9 commit 9a7e35f

2 files changed

Lines changed: 573 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ if(BUILD_TESTS)
140140
add_cloudsql_test(heap_table_tests tests/heap_table_tests.cpp)
141141
add_cloudsql_test(lexer_tests tests/lexer_tests.cpp)
142142
add_cloudsql_test(parser_tests tests/parser_tests.cpp)
143+
add_cloudsql_test(expression_tests tests/expression_tests.cpp)
143144
add_cloudsql_test(storage_manager_tests tests/storage_manager_tests.cpp)
144145
add_cloudsql_test(rpc_server_tests tests/rpc_server_tests.cpp)
145146
add_cloudsql_test(operator_tests tests/operator_tests.cpp)

0 commit comments

Comments
 (0)