Elm Exactly

Results

31 tests have a different outcome under different compilers. See the differences ↓

Each test is a real Elm program: the suite compiles it with each compiler, runs it, and checks its output against the expected output in its comments. The tests tagged elm19-bug and elm19-bug-fix expect the correct behaviour where Elm 0.19.1 has a bug, so they fail under 0.19.1 by design.

The site also carries A Standard Definition of Elm?, a formal definition of the language with a page for every rule.

Each test, project and tag has a Discussions section: start a discussion of a test on GitHub from its page, and it is shown there. See all the discussions of the tests.

Compilers

elm-0.19.1

Elm 0.19.1, from the npm package elm@0.19.1-6
88.8%
1331 passed · 168 failed

elm-0.19.2

Elm 0.19.2, from the npm package elm@0.19.2-0
89.2%
1337 passed · 162 failed

elm-0.19.3

Elm 0.19.3, from the npm package elm@0.19.3-0
88.8%
1331 passed · 168 failed

lamdera-1.5.0

Lamdera 1.5.0 (built on Elm 0.19.3), from the npm package lamdera@0.19.3-1.5.0
89.8%
1346 passed · 153 failed

By project

Passed / failed (/ skipped). Choose a project to see its tests.

ProjectTestselm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
elm
the language: every construct, literals and escapes, closures, recursion, pattern matching, records, custom types, the typing of `number`, ports, flags and `main`, and the programs a compiler must reject
894804 / 90
806 / 88
801 / 93
812 / 82
elm-bytes
elm/bytes encoders and decoders
8885 / 3
85 / 3
85 / 3
85 / 3
elm-core
elm/core, the basis library: arithmetic, equality and order, and every module, function by function
370335 / 35
335 / 35
334 / 36
334 / 36
elm-error-catalogue
requests for a better error report (tag `error-message`): what a compiler's report says or how it is laid out, which A Standard Definition of Elm? does not define. Where such a request rests on a program the book rejects, a test in `elm` checks the rejection
174 / 13
8 / 9
8 / 9
8 / 9
elm-html
elm/html
52 / 3
2 / 3
2 / 3
4 / 1
elm-json
elm/json
4241 / 1
41 / 1
41 / 1
41 / 1
elm-parser
elm/parser
5140 / 11
40 / 11
40 / 11
40 / 11
elm-random
elm/random
10 / 1
0 / 1
0 / 1
0 / 1
elm-regex
elm/regex
128 / 4
8 / 4
8 / 4
8 / 4
elm-time
elm/time
86 / 2
6 / 2
6 / 2
6 / 2
elm-url
elm/url
96 / 3
6 / 3
6 / 3
6 / 3
elm-virtual-dom
elm/virtual-dom
20 / 2
0 / 2
0 / 2
2 / 0

By tag

Passed / failed (/ skipped). A tag gathers tests across projects; choose one to see its tests.

TagTestselm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
elm-spec
tests of `elm` and `elm-core` whose expected outcome A Standard Definition of Elm? determines: its rules and restrictions, derived forms and initial basis
1017907 / 110
909 / 108
904 / 113
915 / 102
elm-spec-contradicts
reported bugs whose expected outcome A Standard Definition of Elm? contradicts: the book decides the program the other way, so the report is not a bug against it; each is marked XFAIL and says why in its comment
61 / 5
0 / 6
0 / 6
0 / 6
elm-unspecced
tests whose expected outcome A Standard Definition of Elm? leaves open or puts outside the definition: what `Debug.log` prints, arrays built by the library functions of `Array`, the value of an integer constant outside the Int range, the text of a crash, shader blocks, programs beyond an implementation's limits on size, stack or memory; each says why in its comment
3127 / 4
28 / 3
28 / 3
28 / 3
elm19-bug
bugs in Elm 0.19.1 and its packages reported in open GitHub issues, and its divergences from A Standard Definition of Elm?; each test links its issue or ruling and expects the correct behaviour
1572 / 155
1 / 156
1 / 156
14 / 143
elm19-bug-fix
bugs in Elm 0.19.1 fixed in a later official Elm release; each test expects the fixed behaviour and says in its comment which release fixed it
90 / 9
7 / 2
9 / 0
9 / 0
elm19-compile-error
programs the compiler must reject, checked by the title of Elm 0.19.1's error report
226226 / 0
226 / 0
221 / 5
222 / 4
error-message
requests for a better error report: what a compiler's report says or how it is laid out, which A Standard Definition of Elm? does not define; named `ErrorMessages…` or `ErrorMessage…` after their issue, and kept in the project `elm-error-catalogue`
174 / 13
8 / 9
8 / 9
8 / 9

Tests whose outcome differs (31)

Hover over a badge for the reason; choose a test for its output.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
elm / AliasProblemExtensibleRecordUnitTupleAndFunctionTestpasspassfailfail
elm / AliasProblemQualifiedTypeTestpasspassfailfail
elm / AliasProblemRecursiveAliasWithCommentedParensTestpasspassfailfail
elm / CaseCharEscapedDuplicateTestfailpasspasspass
elm / CompilerIssue1691ContradictoryExtensibleRecordHangTestfailfailfailpass
elm / CompilerIssue1866PhantomExtensibleRecordHangTestfailfailfailpass
elm / CompilerIssue1890RecordUpdateMutualRecursionCrashTestfailfailpasspass
elm / CompilerIssue2027IncompatibleExtensibleRecordsHangTestfailfailfailpass
elm / CompilerIssue2064ExtendStringNotEnoughBytesTestfailfailfailpass
elm / CompilerIssue2072ExtendUnitInResultCrashTestfailfailfailpass
elm / CompilerIssue2097ExtensibleUnitArgCrashTestfailfailfailpass
elm / CompilerIssue2108IfBranchExtensibleRecordHangTestfailfailfailpass
elm / CompilerIssue2176ExtensibleUnitAliasCrashTestfailfailfailpass
elm / CompilerIssue2206RecordUpdateLetCrashTestfailfailpasspass
elm / CompilerIssue2281LongLineListTestfailpasspasspass
elm / CompilerIssue2366LoneSurrogateCharLiteralTestpassfailfailfail
elm / CyclicDefinitionATopLevelValueDefinedByItselfTestpasspassfailfail
elm / CyclicValueALetValueDefinedByItselfTestpasspassfailpass
elm / LetCycleThroughLambdaArgumentTestpasspassfailfail
elm / LetCycleThroughRecordLambdaTestpasspassfailpass
elm / ParseErrorCasePatternUnfinishedTestfailpasspasspass
elm / StandardA92BytesPortDeclarationTestfailfailfailpass
elm-core / DebugToStringFormatsTestpasspassfailfail
elm-error-catalogue / ErrorMessage2012NameClashCaretSpacesTestfailpasspasspass
elm-error-catalogue / ErrorMessage2147NameClashWhitespaceTestfailpasspasspass
elm-error-catalogue / ErrorMessage2302NameClashListPatternWhitespaceTestfailpasspasspass
elm-error-catalogue / ErrorMessagesIssue372EmptyRecordUpdateExtraCommaTestfailpasspasspass
elm-html / HtmlIssue184SelectTypeTestfailfailfailpass
elm-html / HtmlIssue215TextareaTypeOnPatchTestfailfailfailpass
elm-virtual-dom / VirtualDomIssue110LazyRootRedrawTestfailfailfailpass
elm-virtual-dom / VirtualDomIssue181TextareaTypeTestfailfailfailpass