testing numric literals

This commit is contained in:
simon petit 2024-12-13 09:34:40 +00:00
parent bacc8b4ddb
commit 82460a22fd

View File

@ -58,7 +58,7 @@ let test_simple_select () =
in
Alcotest.(check query_testable) query q2 ast2 ;
let query = "SELECT 'b', 'a', DATE '2024-12-25' AS date" in
let query = "SELECT 1+1, 1, 'b', 'a', DATE '2024-12-25' AS date" in
let q3 = parse query in
let ast3 =
Select(
@ -76,6 +76,18 @@ let test_simple_select () =
Column(
StringLiteral("b"),
None
);
Column(
IntegerLiteral(1),
None
);
Column(
Numeric(
IntegerLiteral(1),
Plus,
IntegerLiteral(1)
),
None
)
],
TableExpression(