Skip to content

Commit b04cb78

Browse files
committed
Explain the unit test in ptrace.rs
1 parent 6110a67 commit b04cb78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/ptrace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ mod tests {
253253

254254
#[test]
255255
fn test_types() {
256+
// c_long is implementation defined, so make sure
257+
// no precision is lost
258+
assert!(Word::min_value() <= usize::min_value());
256259
assert!(usize::max_value() <= Word::max_value());
257260
}
258261
}

0 commit comments

Comments
 (0)