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 strain exercise #239

Merged
merged 3 commits into from
Jan 3, 2024
Merged

Add strain exercise #239

merged 3 commits into from
Jan 3, 2024

Conversation

BNAndras
Copy link
Member

Related to #236

@BNAndras BNAndras changed the title Add strain exxercise Add strain exercise Dec 25, 2023
@ErikSchierboom ErikSchierboom merged commit bd07844 into exercism:main Jan 3, 2024
2 checks passed
@BNAndras BNAndras deleted the add-strain branch January 3, 2024 18:54
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.

Can you clarify please? I don't see any unsynced tests.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The initial code:

class Strain
  @keep: (lst, predicate) -> 

  @discard: (lst, predicate) ->

module.exports = Strain

produces the following error:
TypeError: strain.keep is not a function

Removing the @ makes the tests pass (when solution is implemented).

@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