Sha256: 6a4d511cf211d2dd54673ed462697238657bbc95cff5686f086649e9f9839c2f

Contents?: true

Size: 1.52 KB

Versions: 38

Compression:

Stored size: 1.52 KB

Contents

The Elm exercise test suites may be run from the exercise directory.

```bash
$ cd exercism/project/directory/elm/hello-world
$ elm-test *Tests.elm
```
Replace `*` with the name of the exercise you're on, e.g. HelloWorld for the Hello World exercise.

## Hints and tips

### Coding the exercise

The README.md for each exercise gives a general description but the Elm test program will be very specific. Open the test program and give it a quick look - if it seems like cheating, do it anyway. Look for helpful comments, test data, and just the names of the test functions. Try running the test command before you have written anything and see if the error messages give you an idea of where to start.

Your first goal it to get something to compile, even though it fails tests. For this, you should "stub" functions. That means leave the body empty, except for whatever it must return. Write something like `myFunc param = 0` or whatever it takes just to get it to compile. Sometimes to figure out function types you will have to go back to the test program and read in more detail. Once you have figured out all the required function signatures, the test program will complain that `0` is the wrong answer. Now start filling in function bodies.

### Fixing

It will often be helpful to focus on the first failing test. Fix that one, repeat until no errors. Compile errors and warnings will produce lots of helpful output.

### Cleaning up your code

Consider running [`elm-format`](https://github.com/avh4/elm-format) on your code before submitting it.

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
trackler-2.0.5.1 tracks/elm/docs/TESTS.md
trackler-2.0.5.0 tracks/elm/docs/TESTS.md
trackler-2.0.4.0 tracks/elm/docs/TESTS.md
trackler-2.0.3.9 tracks/elm/docs/TESTS.md
trackler-2.0.3.8 tracks/elm/docs/TESTS.md
trackler-2.0.3.7 tracks/elm/docs/TESTS.md
trackler-2.0.3.6 tracks/elm/docs/TESTS.md
trackler-2.0.3.5 tracks/elm/docs/TESTS.md
trackler-2.0.3.4 tracks/elm/docs/TESTS.md
trackler-2.0.3.3 tracks/elm/docs/TESTS.md
trackler-2.0.3.2 tracks/elm/docs/TESTS.md
trackler-2.0.3.1 tracks/elm/docs/TESTS.md
trackler-2.0.3.0 tracks/elm/docs/TESTS.md
trackler-2.0.2.0 tracks/elm/docs/TESTS.md
trackler-2.0.1.2 tracks/elm/docs/TESTS.md
trackler-2.0.1.1 tracks/elm/docs/TESTS.md
trackler-2.0.1.0 tracks/elm/docs/TESTS.md
trackler-2.0.0.10 tracks/elm/docs/TESTS.md
trackler-2.0.0.9 tracks/elm/docs/TESTS.md
trackler-2.0.0.8 tracks/elm/docs/TESTS.md