Skip to content

Commit 5c9a9e6

Browse files
committed
fix(odbc): use exact binary fractions for f32 tests to avoid precision issues
1 parent 06a8680 commit 5c9a9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/odbc/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test_type!(u64(
7373
// Floating point types
7474
test_type!(f32(
7575
Odbc,
76-
"3.14159" == 3.14159_f32,
76+
"3.125" == 3.125_f32, // Use power-of-2 fractions for exact representation
7777
"0.0" == 0.0_f32,
7878
"-2.5" == -2.5_f32
7979
));

0 commit comments

Comments
 (0)