elm-explorations / elm-explorations/test

Move the name parameter to the first place in all `fuzz` functions

Open
#97 4 comments 4 reactions 0 assignees View on GitHub
Design Question major release blocker
Dominant language
Elm
Stars
244
Forks
40
Avg merge
1d 23h
Merged PRs (30d)
2

Description

The first thing the user wants to see when he skims through a suite definition is the names of things. However the current implementation gives preference to fuzzers, which hardly can describe what the test is about, leaving the verbal description of the test to hang somewhere in the end of the line or even on a new line.

E.g., here's the way things have to be now:

```elm
fuzz2 (Fuzz.list Fuzz.int) Fuzz.int "List.reverse never influences List.member" <|
...
```

Here's what I suggest:
```elm
fuzz2 "List.reverse never influences List.member" (Fuzz.list Fuzz.int) Fuzz.int <|
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.