Skip to content

Fix incorrect hashmap2 test#660

Merged
manyinsects merged 1 commit intorust-lang:mainfrom
cargopete:patch-1
Apr 20, 2021
Merged

Fix incorrect hashmap2 test#660
manyinsects merged 1 commit intorust-lang:mainfrom
cargopete:patch-1

Conversation

@cargopete
Copy link
Copy Markdown
Contributor

@cargopete cargopete 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.
@cargopete cargopete changed the title Update hashmap2 at_least_five_types_of_fruits test Fix incorrect hashmap2 test Feb 27, 2021
@manyinsects manyinsects merged commit 72aaa15 into rust-lang:main Apr 20, 2021
@manyinsects
Copy link
Copy Markdown
Member

@all-contributors please add @arthas168 for content

@allcontributors
Copy link
Copy Markdown
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