should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
@testset "C API Type Checks" begin
# Check struct sizes.
# Timestamp struct size mismatch, eventually structs are stored as pointers. This happens if they are declared as mutable structs.
@test sizeof(DuckDB.duckdb_timestamp_struct) ==
sizeof(DuckDB.duckdb_date_struct) + sizeof(DuckDB.duckdb_time_struct)
# Bot structs are equivalent and actually stored as a Union type in C.
@test sizeof(DuckDB.duckdb_string_t) == sizeof(DuckDB.duckdb_string_t_ptr)
end