Skip to content

Diamond:update tests and version file - #1292

Merged
sjwarner-bp merged 4 commits into
exercism:masterfrom
Haozhe321:1277-diamond-update-tests-and-version-file
Feb 8, 2018
Merged

sjwarner-bp merged 4 commits into
exercism:masterfrom
Haozhe321:1277-diamond-update-tests-and-version-file

Conversation

@Haozhe321

@Haozhe321 Haozhe321 commented Feb 6, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #1277

  1. Update test
  2. Update version file number

Reviewer Resources:

Track Policies

@sjwarner-bp sjwarner-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good so far! I've left one comment - I think the README can stay as it was 🙂

Comment thread exercises/diamond/README.md Outdated
```

Diamond for letter 'E':
Diamond for letter 'D':

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this change is part of the problem-specifications 🙂

Comment thread exercises/diamond/README.md Outdated
```

Diamond for letter 'E':
Diamond for letter 'D':

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this change is from the problem-specifications 🙂

@Haozhe321

Copy link
Copy Markdown
Contributor Author

@sjwarner-bp The README was changed to be consistent with the changes done in the test suite. If the README and test suite, I can revert the change to the README.

@sjwarner-bp

Copy link
Copy Markdown
Contributor

The READMEs should be automatically generated through configlet.

This tool looks at problem-specifications/exercises/diamond/description.md and essentially copies it in with a bit of extra Java stuff stuck around the edges.

It looks as though the description still uses examples of 'A', 'C' and 'E' diamonds, so we should be ok to keep the README as it is.

Does this make sense? 🙂

If you think that users could benefit from the README making use of your changes, please feel free to open an issue in the problem-specifications repo and see what the others think 🙂

@Haozhe321

Copy link
Copy Markdown
Contributor Author

On a unrelated note, can I ask how is the test suite calling the main Class(in this case DiamondPrinter), when the DiamondPrinter is not being imported? In addition, there are two DiamondPrinter classes(one which the user is supposed to fill in, and one provided as an answer). How does gradle test know which file to take from? Thanks in advance!

@Haozhe321
Haozhe321 force-pushed the 1277-diamond-update-tests-and-version-file branch from c588fb7 to 4397906 Compare February 6, 2018 09:12
@Haozhe321

Copy link
Copy Markdown
Contributor Author

Thanks for the explanation on README! I've put back the changes :)

@sjwarner-bp

Copy link
Copy Markdown
Contributor

Hi @Haozhe321 - we ensure that the reference solution compiles and passes all tests through the use of this file. Take a look, it should be fairly self-explanatory! 🙂

@sjwarner-bp
sjwarner-bp merged commit e623640 into exercism:master Feb 8, 2018
@sjwarner-bp

Copy link
Copy Markdown
Contributor

Thanks @Haozhe321 🙂

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.

2 participants