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

Add grains exercise #246

Merged
merged 5 commits into from
Jan 3, 2024
Merged

Conversation

BNAndras
Copy link
Member

Related to #236

Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
@ErikSchierboom ErikSchierboom merged commit 1905ca9 into exercism:main Jan 3, 2024
2 checks passed
@BNAndras BNAndras deleted the add-grains-exercise branch January 3, 2024 18:54
@@ -0,0 +1,6 @@
class Grains
@square: (number) ->
Copy link
Contributor

@ladokp ladokp Jan 3, 2024

Choose a reason for hiding this comment

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

Why are this "@" signs in front of the methods? To pass the tests I had to remove them in my solution.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the tests are not synchronized with this change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you elaborate on the tests not being synchronized? configlet isn't seeing any missing.

./bin/configlet sync --tests -e grains
Updating cached 'problem-specifications' data...
Checking exercises...
The `grains` exercise has up-to-date tests!

Copy link
Member Author

@BNAndras BNAndras Jan 3, 2024

Choose a reason for hiding this comment

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

Why are this "@" signs in front of the methods?

That signifies they are class methods so Grains.square() and new Grains.square() both work. I'll investigate further, but the example passed the CI.

Copy link
Member Author

Choose a reason for hiding this comment

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

I opened up #249 so we can iterate there.

@BNAndras BNAndras added x:module/practice-exercise Work on Practice Exercises x:rep/medium Medium amount of reputation labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:module/practice-exercise Work on Practice Exercises x:rep/medium Medium amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants