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

hangman: Implement canonical-data.json #562

Open
kytrinyx opened this issue Feb 13, 2017 · 1 comment
Open

hangman: Implement canonical-data.json #562

kytrinyx opened this issue Feb 13, 2017 · 1 comment

Comments

@kytrinyx
Copy link
Member

kytrinyx commented Feb 13, 2017

We want to have a standard set of test inputs and outputs for each exercise to
make it easier to port them to new languages, as well as to help keep the
exercises in sync.

The Hangman exercise can be found in the ./exercises/hangman/ directory.

The step-by-step instructions for how to compile a canonical-data.json file is
described in this section of the contributing guide.

See http://exercism.io/contribute/canonical-data/hangman for the up-to-date list of
language tracks that have an implementation of the Hangman exercise.

The tracking issue has more context.

@cmccandless
Copy link
Contributor

Currently this exercise is described as an FRP exercise. This presents a couple of unique challenges to standardizing the inputs/outputs in JSON form:

  • Not every language has FRP. Some can add it through 3rd-party libraries, which are usually not required for exercise test suites (though student solutions might utilize them)
  • Ideally, the canonical data would, at minimum, reference FRP (or at least RP). However, defining test cases like this stretches the current format of the canonical data schema (see canonical data for react for another example of this sort of complex test case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants