Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect hashmap2 test #660

Merged
merged 1 commit into from
Apr 20, 2021
Merged

Fix incorrect hashmap2 test #660

merged 1 commit into from
Apr 20, 2021

Conversation

pete-eiger
Copy link
Contributor

@pete-eiger pete-eiger commented Feb 27, 2021

The test at_least_five_types_of_fruits implies that there should be at least five types of fruit in the basket, but the test is actually checking for exactly five types of fruit, which was a bit misleading for newcomers like me :)

A simple change from == to >= should do the trick and properly check for the at least 5 condition.

The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
@pete-eiger pete-eiger changed the title Update hashmap2 at_least_five_types_of_fruits test Fix incorrect hashmap2 test Feb 27, 2021
@shadows-withal shadows-withal merged commit 72aaa15 into rust-lang:main Apr 20, 2021
@shadows-withal
Copy link
Member

@all-contributors please add @arthas168 for content

@allcontributors
Copy link
Contributor

@fmoko

I've put up a pull request to add @arthas168! 🎉

ingrachen pushed a commit to ingrachen/rustlings that referenced this pull request May 2, 2021
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
liangminhua pushed a commit to liangminhua/rustlings that referenced this pull request Jul 10, 2021
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
noiffion pushed a commit to noiffion/rustlings that referenced this pull request Aug 20, 2021
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
bugaolengdeyuxiaoer pushed a commit to bugaolengdeyuxiaoer/rustlings that referenced this pull request Dec 28, 2021
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
ppp3 pushed a commit to ppp3/rustlings that referenced this pull request May 23, 2022
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
dmoore04 pushed a commit to dmoore04/rustlings that referenced this pull request Sep 11, 2022
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
Spacebody pushed a commit to Spacebody/my-rustlings that referenced this pull request Nov 18, 2022
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) 

A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants