github
14 of 21 new or added lines in 3 files covered. (66.67%)
21 existing lines in 2 files now uncovered.4370 of 5463 relevant lines covered (79.99%)
2301.31 hits per line
1 |
///|
|
|
2 |
pub fn Double::to_int(self : Double) -> Int { |
|
NEW
|
if self != self {
|
× |
NEW
|
0
|
× |
NEW
|
} else if self > 0x7FEFFFFFFFFFFFFFL.reinterpret_as_double() { |
× |
NEW
|
2147483647
|
× |
NEW
|
} else if self < 0xFFEFFFFFFFFFFFFFL.reinterpret_as_double() { |
× |
NEW
|
-2147483648
|
× |
9 |
} else {
|
|
NEW
|
self.unsafe_to_int() |
× |
11 |
} |
|
12 |
} |