Skip to content

Latest commit

 

History

History
94 lines (55 loc) · 5.11 KB

README.md

File metadata and controls

94 lines (55 loc) · 5.11 KB

Exercism Fortran Track

configlet fortran / main Gitpod Ready-to-Code

Exercism exercises in Fortran.

Setup

Assuming that you have CMake and Fortran running you should be able to run the following commands in a shell:

(in case of Intel Fortran source ifortvars first)

Linux and MacOS

mkdir build
cd build
cmake ..
make
ctest -V

Windows

mkdir build
cd build
cmake -G"NMake Makefiles" ..
nmake
ctest -V

For more information see Installation instructions

Contributing

Thank you so much for contributing! 🎉

Please read about how to contribute to Exercism. Be sure to read the Exercism Code of Conduct.

We welcome pull requests of all kinds. No contribution is too small.

We encourage contributions that provide fixes and improvements to existing exercises. Please note that this track's exercises must conform to the standards determined in the exercism/problem-specifications repo. Changes to the tests or documentation of a common exercise will often warrant a PR in that repo before it can be incorporated into this track's exercises. If you're unsure, then go ahead and open a GitHub issue, and we'll discuss the change.

Exercise Tests

At the most basic level, Exercism is all about the tests. They drive the user's implementation forward and tell them when the exercise is complete.

The utmost care and attention should be used when adding or making changes to the tests for an exercise. When implementing an exercise test suite, we want to provide a good user experience for the people writing a solution to the exercise. People should not be confused or overwhelmed.

We simulate Test-Driven Development (TDD) by implementing the tests in order of increasing complexity. We try to ensure that each test either

  • helps triangulate a solution to be more generic, or
  • requires new functionality incrementally.

Fortran Track

Test files for the Fortran track should be created with the Python3 script bin/create_fortran_test.py which is documented here.

Submitting a Pull Request

Please keep the following in mind:

  • Pull requests should be focused on a single exercise, issue, or change.

  • We welcome changes to code style, and wording. Please open a separate PR for these changes if possible.

  • Please open an issue before creating a PR that makes significant (breaking) changes to an existing exercise or makes changes across many exercises. It is best to discuss these changes before doing the work. Discussions related to exercises that are not track-specific can be found in Exercism's forum.

  • Follow the coding standards for Fortran. (If there is a formatter for the track's language, add instructions for using it here.)

  • Watch out for trailing spaces, extra blank lines, and spaces in blank lines.

  • All the tests for Fortran exercises can be run from the top level of the repo with ... Please run this command before submitting your PR.

Contributing a New Exercise

  • All Exercism exercises must be defined in problem-specifications before they are implemented for a specific track. Please submit a PR there if your exercise is new to Exercism.

  • Please make sure the new exercise conforms to specifications in the exercism/problem-specifications repo.

  • Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.

  • Exercises should use only the Fortran core libraries.

  • Please do not add a README or README.md file to the exercise directory. The READMEs are constructed using shared metadata, which lives in the exercism/problem-specifications repository. Further explanation can be found in Exercism's docs.

  • Each exercise should have a test suite, an example solution, a template file for the real implementation and ... (anything else that needs to go with each exercise for this track). The CI build expects files to be named using the following convention: (describe the Fortran convention for naming the various files that make up an exercise).

  • Please do not commit any configuration files or directories inside the exercise other than ...

  • Be sure to add it to the appropriate place in the config.json file. Also, please run bin/fetch-configlet && bin/configlet to ensure the exercise is configured correctly.