Skip to content

Commit

Permalink
Restore commented tests
Browse files Browse the repository at this point in the history
These seem to have been commented by accident in #298, and are still
passing.
  • Loading branch information
braddunbar committed Jan 28, 2024
1 parent e24587d commit 5012ade
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bytes_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,6 @@ fn original_capacity_from_repr(repr: usize) -> usize {
1 << (repr + (MIN_ORIGINAL_CAPACITY_WIDTH - 1))
}

/*
#[test]
fn test_original_capacity_to_repr() {
assert_eq!(original_capacity_to_repr(0), 0);
Expand Down Expand Up @@ -1458,7 +1457,6 @@ 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 {}
Expand Down

0 comments on commit 5012ade

Please sign in to comment.