We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f4be2 commit 1ef1c49Copy full SHA for 1ef1c49
datafusion/sqllogictest/src/engines/conversion.rs
@@ -149,6 +149,7 @@ mod tests {
149
150
#[test]
151
fn test_big_decimal_to_str() {
152
+ assert_decimal_str_eq!(110, 3, "0.11");
153
assert_decimal_str_eq!(11, 3, "0.011");
154
assert_decimal_str_eq!(11, 2, "0.11");
155
assert_decimal_str_eq!(11, 1, "1.1");
@@ -157,6 +158,7 @@ mod tests {
157
158
assert_decimal_str_eq!(0, 0, "0");
159
160
// Negative cases
161
+ assert_decimal_str_eq!(-110, 3, "-0.11");
162
assert_decimal_str_eq!(-11, 3, "-0.011");
163
assert_decimal_str_eq!(-11, 2, "-0.11");
164
assert_decimal_str_eq!(-11, 1, "-1.1");
0 commit comments