Skip to content

Commit

Permalink
add len asserts to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jujumba committed Oct 20, 2024
1 parent 8db53a3 commit a7ca1b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3249,6 +3249,7 @@ mod tests {
assert!(v.push_within_capacity(false).is_ok());

assert_eq!(v.get(16), Some(false));
assert_eq!(v.len(), 17);
}

#[test]
Expand All @@ -3259,6 +3260,7 @@ mod tests {

assert_eq!(v.get(31), Some(false));
assert_eq!(v.len(), v.capacity());
assert_eq!(v.len(), 32);

assert_eq!(v.push_within_capacity(false), Err(false));
}
Expand All @@ -3271,6 +3273,7 @@ mod tests {

assert_eq!(v.get(95), Some(false));
assert_eq!(v.len(), v.capacity());
assert_eq!(v.len(), 96);

assert_eq!(v.push_within_capacity(false), Err(false));
}
Expand Down

0 comments on commit a7ca1b0

Please sign in to comment.