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

Confusing wording in test from task 2 #13

Open
samraul opened this issue Feb 9, 2022 · 1 comment
Open

Confusing wording in test from task 2 #13

samraul opened this issue Feb 9, 2022 · 1 comment

Comments

@samraul
Copy link
Contributor

samraul commented Feb 9, 2022

it('can add the star name and star symbol properly', async() => {
// 1. create a Star with different tokenId
//2. Call the name and symbol properties in your Smart Contract and compare with the name and symbol provided
});

This test seems to be mixing the concepts of star information vs contract information.

  • There is no such thing as star symbol
  • There is no need to create a star to check the contract name and symbol
  • When it asks to compare versus name and symbol provided, it does not state where they are provided.
    • The properties should probably be in the constructor, so perhaps it should state so?

Thanks.

samraul added a commit to samraul/nd1309-p2-Decentralized-Star-Notary-Service-Starter-Code that referenced this issue Feb 9, 2022
Fix confusing test (see issue udacity#13) by requiring properties to be set in the constructor of the contract.
@jungleBadger
Copy link

jungleBadger commented Jul 26, 2022

Hi there, @samraul. Thanks for your concern; let me address your points below:

  1. The star symbol is required and can be available through 02 main strategies: Hardcoded value in all Stars created by your Smart Contract or receiving it as a variable in the Constructor.
  2. You are correct; you need to check against one created in previous steps. The students are free to create a new one if they wish to.
  3. They are properties available in all Stars created in your Smart Contract.
  4. As I disclaimed in point 1 above, it is not mandatory to be in the Constructor.

Finally, here is the highlight from the project's rubric disclaiming the usage of the Star symbol:

image

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

No branches or pull requests

2 participants