github
11 of 21 new or added lines in 3 files covered. (52.38%)
4388 of 5463 relevant lines covered (80.32%)
2302.56 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 |
} |