Skip to content

Commit c413b1b

Browse files
committed
Added failing test for issue #107
1 parent 834c13d commit c413b1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/number.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,9 @@ fn as_fixed_point_i64() {
126126
fn convert_f64_precision() {
127127
assert_eq!(Number::from_parts(true, 4750000000000001, -18), 0.004750000000000001);
128128
}
129+
130+
#[test]
131+
fn issue_107() {
132+
let n = Number::from_parts(true, 1, -32768);
133+
assert_eq!(format!("{}", n), "1e-32768");
134+
}

0 commit comments

Comments
 (0)