Skip to content

Commit ee20c89

Browse files
committed
fix(odbc): update float test values for accuracy
1 parent ee3b1cc commit ee20c89

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/odbc/types.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ test_type!(f32(
8080

8181
test_type!(f64(
8282
Odbc,
83-
"939399419.1225182" == 939399419.1225182_f64,
84-
"3.14159265358979" == 3.14159265358979_f64,
83+
"123456.75" == 123456.75_f64,
84+
"3.141592653589793" == 3.141592653589793_f64,
8585
"0.0" == 0.0_f64,
86-
"-1.23456789" == -1.23456789_f64
86+
"-1.25" == -1.25_f64
8787
));
8888

8989
// String types
@@ -237,8 +237,8 @@ test_type!(cross_type_unsigned_compatibility<u32>(Odbc,
237237
));
238238

239239
test_type!(cross_type_float_compatibility<f64>(Odbc,
240-
"3.14159" == 3.14159_f64,
241-
"123.456789" == 123.456789_f64
240+
"3.125" == 3.125_f64,
241+
"123.75" == 123.75_f64
242242
));
243243

244244
// Type coercion from strings
@@ -248,8 +248,8 @@ test_type!(string_to_integer<i32>(Odbc,
248248
));
249249

250250
test_type!(string_to_float<f64>(Odbc,
251-
"'3.14159'" == 3.14159_f64,
252-
"'-2.718'" == -2.718_f64
251+
"'3.125'" == 3.125_f64,
252+
"'-2.75'" == -2.75_f64
253253
));
254254

255255
test_type!(string_to_bool<bool>(Odbc,

0 commit comments

Comments
 (0)