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 stub solutions for all exercises #145

Closed
NobbZ opened this issue Mar 1, 2017 · 2 comments
Closed

Add stub solutions for all exercises #145

NobbZ opened this issue Mar 1, 2017 · 2 comments

Comments

@NobbZ
Copy link
Member

NobbZ commented Mar 1, 2017

There should be a stub solution for every exercise, roughly like the following:

-module($module_name).

-export([fun_a/0, fun_b/2]).

fun_a() -> undefined.

fun_b(Param1, Param2) -> undefined.

test_version -> 1. % or whatever version is needed to pass the tests

Also we need a check in bin/journey-test that fails if it is missing.

if [[ ! -f "${exercism_exercises_dir}/erlang/${exercise}/src/${module}.erl ]]; then exit 1; fi

Should be a sufficient test, best put between current lines 201 (introduction of $module) and 202 (overwriting any stub that might exist with the example solution).

@stale
Copy link

stale bot commented Apr 30, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@JordanAdams
Copy link
Contributor

I've put a PR to resolve this here: #177

@NobbZ NobbZ closed this as completed in #177 Aug 4, 2017
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

2 participants