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

Function test_double_precision_arithmetic

tests/float_decimal_test.rs:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83#[test]
84fn test_double_precision_arithmetic() {
85 let conn = setup_test_db();
86
87 // Test DOUBLE PRECISION columns
88 let sql = "SELECT pressure / 101.325 FROM measurements";
89 let result = rewrite_query(&conn, sql).unwrap();
90 println!("DOUBLE PRECISION arithmetic rewritten to: {result}");
91 assert!(result.contains("decimal_div"));
92}
93
94#[test]
95fn test_float_type_comparison() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected