Restore commented tests (#665)

These seem to have been commented by accident in #298, and are still
passing.
This commit is contained in:
Brad Dunbar
2024-02-06 10:17:01 -08:00
committed by GitHub
parent d2e7abdb29
commit 8bcac21cb4
+5 -2
View File
@@ -1409,7 +1409,10 @@ fn original_capacity_from_repr(repr: usize) -> usize {
1 << (repr + (MIN_ORIGINAL_CAPACITY_WIDTH - 1)) 1 << (repr + (MIN_ORIGINAL_CAPACITY_WIDTH - 1))
} }
/* #[cfg(test)]
mod tests {
use super::*;
#[test] #[test]
fn test_original_capacity_to_repr() { fn test_original_capacity_to_repr() {
assert_eq!(original_capacity_to_repr(0), 0); 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 * 32, original_capacity_from_repr(6));
assert_eq!(min_cap * 64, original_capacity_from_repr(7)); assert_eq!(min_cap * 64, original_capacity_from_repr(7));
} }
*/ }
unsafe impl Send for BytesMut {} unsafe impl Send for BytesMut {}
unsafe impl Sync for BytesMut {} unsafe impl Sync for BytesMut {}