Exercism  Artifact [0334c3cb06]

Artifact 0334c3cb069e0416c12c3b6e32d0e6cf5352b9695a6818dc3686a394a8263b90:

  • File factor/two-fer/README.md — part of check-in [862ba6ac30] at 2019-02-28 12:55:00 on branch trunk — Isogram solution. (user: jaccarmac size: 1466)

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:

One for X, one for me.

Where X is the given name.

However, if the name is missing, return the string:

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.

Testing Exercises

If you followed the installation instructions, just run the provided test suite against your implementation with "exercise-name" test.

Submitting Exercises

Note that, when trying to submit an exercise, make sure the solution is in the exercism/factor/exercise-name directory.

For example, if you're submitting bob.factor for the Bob exercise, the submit command would be something like exercism submit exercism/factor/bob/bob.factor.

For more detailed information about running tests, code style and linting, please see the help page.

Source

https://github.com/exercism/problem-specifications/issues/757

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.