-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Implement new exercise, two-fer #757
Comments
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
pangram: Update to match changes in canonical data
TwoferTest.scala throws a compilation error when running sbt test Twofer.twofer() has the name parameter missing. On adding an empty name parameter error is resolved. test("no name given") { |
@amit-rastogi you may want to report that in the scala track repo. You're more likely to find help there because this repo is about the shared test cases, not the scala implementation, and the scala team might not notice the bug report here. (cc @exercism/scala) |
I am not sure if this is the right place to call for help. I am new to Pharo and trying to use exercism.io to practice. However, I failed to import the example code that I downloaded from https://exercism.io/my/solutions/2c59b5cf2508431baae6a5b95c85a720 into Pharo. I checked in the community and came to understand that Pharo is using a file format called Tonel, which is not the one used in Pharo-exercism. In order to work on Pharo track exercises, one must take it into a Pharo image. Please advise. |
As far as I understand the workflow for Pharo, you need to use some prepared Pharo image that does the downloads and submissions for you. Please refer to the Pharo instructions on the website and open a complete new issue at GitHub.com/exercism/exercism |
@NobbZ I found this repo https://github.com/exercism/pharo-smalltalk but if i understand correctly, it is for already experienced Pharo developers to contribute. I could not find instructions for freshers like myself. |
You can ask your question how to work with the pharo track there, chances to find someone who can help you are highest there. Also, have you followed instructions from https://exercism.io/tracks/pharo-smalltalk/installation, which asks you to run some magic invocation to install the exercism plugin into the Pharo IDE? |
Hello,
I am using pylint as well. It points to: If I add an empty name, thus:
|
@IliasMariosG This portion of the exercise is intended to teach you about default arguments. Almost certainly, your code is written something like def two_fer(name):
# implementation here However, as the error says, this definition type only works if you pass a value which can be bound to the def two_fer(name = "default"):
# implementation here With that definition, anytime the caller doesn't provide a value to be bound to Incidentally, while it's good that you've done your research to identify the source of the |
# Two Fer `Two-fer` or `2-fer` is short for two for one. One for you and one for me. Given a name, return a string with the message: ```text One for name, one for me. ``` Where "name" is the given name. However, if the name is missing, return the string: ```text One for you, one for me. ``` Here are some examples: |Name |String to return |:-------|:------------------ |Alice |One for Alice, one for me. |Bob |One for Bob, one for me. | |One for you, one for me. |Zaphod |One for Zaphod, one for me. ## Setup Go through the setup instructions for Javascript to install the necessary dependencies: [https://exercism.io/tracks/javascript/installation](https://exercism.io/tracks/javascript/installation) ## Requirements Please `cd` into exercise directory before running all below commands. Install assignment dependencies: ```bash $ npm install ``` ## Making the test suite pass Execute the tests with: ```bash $ npm test ``` In the test suites all tests but the first have been skipped. Once you get a test passing, you can enable the next one by changing `xtest` to `test`. ## Submitting Solutions Once you have a solution ready, you can submit it using: ```bash exercism submit two-fer.js ``` ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise. ## Exercise Source Credits [https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757)
On a new checkout of this problem and running
UPDATE: Okay, works fine, I forgot to run |
I think there is a problem in the Delphi exercise on Git. |
Fill it with functionality. In the current v2, this is a choice some tracks did. |
As of Version 1.2.0, the unit tests for this exercise do not compile. Compile error: Unspecified value parameters: name: String The following line is missing en empty string: It should be this instead: |
Hello fellow developers. I'm a total noob in python but I'm wondering why this code is not valid in your validation testing:
Thank you, and sorry in advance if this is not the correct channel to give you feedback regarding exercises. |
@axor there is a difference between Feel free to request mentoring (and if the tests isn't passing you can submit and incomplete solution from the CLI) and someone be able to assist you. EDIT: issues for python specifically should be in https://github.com/exercism/python |
!!! Good tip : try to return answer without print function, just compose the answer in combination with strings in parenthesis and the variable |
@saveriogzz you'll get better response by creating an issue in the exercism/exercism repo |
The test file has been updated as the test was failing when the 'no name given' test was being executed. I found the answer via this exercism/problem-specifications#757 (comment)
This comment was marked as off-topic.
This comment was marked as off-topic.
This exercise may be out of order in the |
@adithyabsk Would you report this in the forum? https://forum.exercism.org/ That will ensure that the right people see the discussion. |
In mac , using brew I got the following error 👍
So I installed bats-core and it worked.
|
That's unrelated to this issue. For support, consider using the forum or Discord. |
In #548 we discussed a new exercise which is equivalent to the current
hello-world
exercise (which conditionally provides a name, or defaults to "world") in the string "hello, %s".The conclusion was to implement a new exercise,
two-fer
."One for X, one for me."
where X is either a name, or it defaults to"you"
.Next steps:
hello-world
exercise, suggesting that hello-world be simplified as described in the discussion in I posit that hello-world is too complex for a first exercise. How do we deal with it? #520blazon
(there's some documentation about how to use blazon in https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/improving-consistency-across-tracks.md, and an open issue about making that a stand-alone and more complete document in Specify that tests must be output in order docs#10)The text was updated successfully, but these errors were encountered: