Skip to content

Commit

Permalink
Fix test coverage of BIG_VECTOR (#48)
Browse files Browse the repository at this point in the history
Local coverage checks were green, pipeline red. Better safe than sorry.
  • Loading branch information
MusicalNinjaDad authored Jun 3, 2024
1 parent 8111364 commit efefb34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
- Allow a `slice` to be passed to `fizzbuzzo3.fizzbuzz` - this provides a further 1.5x speed increase over passing a list with the same elements.
- Build rust with `--release` optimisations - another 4-7x speed increase.

## Rust 3.0.2

- Fix dedicated test case for big vector.

## Rust 3.0.1

- Additional test case validating use case for stepped range, no code changes required.
Expand Down
2 changes: 1 addition & 1 deletion rust/fizzbuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fizzbuzz"
version = "3.0.1"
version = "3.0.2"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion rust/fizzbuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ mod test {

#[test]
fn big_vector_is_well_ordered() {
let input: Vec<_> = (1..BIG_VECTOR + 1).collect();
let input: Vec<_> = (1..BIG_VECTOR + 2).collect();
let output: Vec<_> = input.clone().fizzbuzz().into();
let mut expected: Vec<String> = vec![];
for i in input.iter() {
Expand Down

0 comments on commit efefb34

Please sign in to comment.