rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

The exercise `primitive_types3` pass even if the array is small

Open anuk909 opened this issue 4 years ago • 3 comments

anuk909 avatar Sep 19 '21 11:09 anuk909

That's part of the idea behind the exercise!

manyinsects avatar Jul 12 '22 12:07 manyinsects

That's part of the idea behind the exercise!

@shadows-withal But why does the comment then state: // Create an array with at least 100 elements... when it passes with less then 100 elements?

mobergmann avatar Jul 17 '23 21:07 mobergmann

@mobergmann Good question and I'm not sure why last-year-me closed this issue. This should be fixed by making the exercise rely on tests instead.

manyinsects avatar Jul 18 '23 11:07 manyinsects

The current version panics when the array isn't big enough.

mo8it avatar Jul 10 '24 11:07 mo8it