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

Fix issues of naming in rna-transcription. #27

Merged
merged 1 commit into from
Oct 19, 2014

Conversation

magthe
Copy link
Contributor

@magthe magthe commented Oct 16, 2014

The following changes all make it easier to run the tests:

  • Rename the test sources to match what eunit wants: tests for foo live in
    foo_tests (note the 's' at the end there).
  • Expect the module-under-test to be named rna_transcription.
  • Modify the test source to explicitly import the solution expected from the user.
  • Add instructions for compilation and running.

All of this follows the lead of the previous exercise, leap.

Signed-off-by: Magnus Therning magnus@therning.org

% erl -noshell -eval "eunit:test(rna_transcription, [verbose])" -s init stop

-module(rna_transcription_tests).
-include(rna_transcription, [to_rna/1]).
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is redundant. All of the calls are fully qualified calls to the module, this statement imports the name from that module locally.

@etrepum
Copy link
Contributor

etrepum commented Oct 16, 2014

Other than that one line, this looks great.

@magthe
Copy link
Contributor Author

magthe commented Oct 17, 2014

I'll try a git push --force to the branch to see if it triggers an update to this pull request :)

The following changes all make it easier to run the tests:

- Rename the test sources to match what eunit wants: tests for `foo` live in
  `foo_tests` (note the 's' at the end there).
- Expect the module-under-test to be named `rna_transcription`.
- Modify the test source to explicitly import the solution expected from the user.
- Add instructions for compilation and running.

All of this follows the lead of the previous exercise, `leap`.

Signed-off-by: Magnus Therning <magnus@therning.org>
@magthe
Copy link
Contributor Author

magthe commented Oct 17, 2014

Pushed a new version, now without the -include... line.

etrepum added a commit that referenced this pull request Oct 19, 2014
Fix issues of naming in rna-transcription.
@etrepum etrepum merged commit 6ea6441 into exercism:master Oct 19, 2014
lehoff pushed a commit to lehoff/xerlang that referenced this pull request Dec 17, 2014
Fix issues of naming in rna-transcription.
yurrriq added a commit to lfex/xlfe that referenced this pull request Aug 24, 2016
Update lfe-compile, lfe and ltest dependencies to close exercism#25.

Move ltest dependency to the test profile and add

    {eunit_compile_opts, [{src_dirs, ["src", "test"]}]}

to ensure the tests are compiled and fix exercism#27.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants