Commit 9a7e35f
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 implementation1 parent d1294e9 commit 9a7e35f
2 files changed
Lines changed: 573 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
0 commit comments