mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-09-08 00:00:22 +02:00
Restore commented tests (#665)
These seem to have been commented by accident in #298, and are still passing.
This commit is contained in:
+5
-2
@@ -1409,7 +1409,10 @@ fn original_capacity_from_repr(repr: usize) -> usize {
|
||||
1 << (repr + (MIN_ORIGINAL_CAPACITY_WIDTH - 1))
|
||||
}
|
||||
|
||||
/*
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_original_capacity_to_repr() {
|
||||
assert_eq!(original_capacity_to_repr(0), 0);
|
||||
@@ -1458,7 +1461,7 @@ fn test_original_capacity_from_repr() {
|
||||
assert_eq!(min_cap * 32, original_capacity_from_repr(6));
|
||||
assert_eq!(min_cap * 64, original_capacity_from_repr(7));
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
unsafe impl Send for BytesMut {}
|
||||
unsafe impl Sync for BytesMut {}
|
||||
|
||||
Reference in New Issue
Block a user