MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_mixed_float_numeric_operations

Function test_mixed_float_numeric_operations

tests/float_decimal_test.rs:107–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106#[test]
107fn test_mixed_float_numeric_operations() {
108 let conn = setup_test_db();
109
110 // Test operations mixing FLOAT8 and FLOAT4
111 let sql = "SELECT value1 + value2 * 2.5 FROM calculations";
112 let result = rewrite_query(&conn, sql).unwrap();
113 println!("Mixed float operations rewritten to: {result}");
114 assert!(result.contains("decimal_add"));
115 assert!(result.contains("decimal_mul"));
116}
117
118#[test]
119fn test_float_aggregates() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected