Skip to content

Commit 80ee562

Browse files
committed
Moving print_dec-related tests to a separate file
1 parent 7497c5a commit 80ee562

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests/number.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,3 @@ 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-
}

tests/print_dec.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extern crate json;
2+
3+
use json::number::Number;
4+
5+
#[test]
6+
fn issue_107() {
7+
let n = Number::from_parts(true, 1, -32768);
8+
assert_eq!(format!("{}", n), "1e-32768");
9+
}

0 commit comments

Comments
 (0)