Elm Exactly
Results / tags /

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

Discussions of this tag and its tests ↓

Showing 1017 of 1017 tests. Hover over a badge for the reason.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
elm / AccessorFunctionFieldInListTest
Record accessors for function-typed fields can be used as list elements.
passpasspasspass
elm / AccessorFunctionFieldTailCallTest
Record accessors for function-typed fields can be passed as arguments of self-recursive tail calls.
passpasspasspass
elm / AccessorPlaceholderAccessorOfAFunctionFieldPassedInTailCallsTest
Record accessors for function-typed fields can be passed as arguments of tail calls, at top level and in an unannotated let-bound function.
passpasspasspass
elm / AccessorToLocalFuncTest
A record accessor can be passed as an argument to a let-bound function.
passpasspasspass
elm / AccessorVariableTest
A record accessor works when bound to a variable, and `.name` works on elements of lists of two different record types.
passpasspasspass
elm / AliasForwardTest
Top-level values defined as another function, `dup = twice` and `plus = (+)`, behave like the function they name.
passpasspasspass
elm / AliasProblemExtensibleRecordUnitTupleAndFunctionTest (must not compile)elm19-compile-error
A type alias that refers to itself inside an extensible record is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / AliasProblemQualifiedTypeTest (must not compile)elm19-compile-error
A type alias that refers to itself through a qualified type is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / AliasProblemRecursiveAliasWithCommentedParensTest (must not compile)elm19-compile-error
A record type alias that refers to itself is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / AliasUnboundVariableTest (must not compile)
A type alias uses only its parameters.
passpasspasspass
elm / AliasUnusedParameterTest (must not compile)
A type alias has no unused parameter.
passpasspasspass
elm / AnnotatedLetRecFnResultTest
A recursive let-bound function whose type annotation has a function as its result works.
passpasspasspass
elm / AnnotationNotFollowedByDefinitionTest (must not compile)
An annotation must be followed directly by the definition it annotates.
passpasspasspass
elm / AnonymousFunctionTest
Anonymous functions work as the function argument of higher-order functions.
passpasspasspass
elm / AppendTypeSplitTest
`++` gives the right result on `String`s and `List`s, including empty operands, long strings, nested appends, and a function whose type is `appendable`.
passpasspasspass
elm / ArrayEqualityFlagsTest
Two arrays are equal under `==` when they hold equal elements in the same order: arrays received as flags are compared, with the same elements, a different element, and a different length.
passpasspasspass
elm / AstralCharCasePatternTest
A `case` on a `Char` matches a pattern above U+FFFF, `'\u{1F600}'`, against the same character written as an escape or as the character itself.
passpasspasspass
elm / AstralCharLiteralTest
A `Char` literal above U+FFFF has its full code point: `'\u{1F600}'` is 128512, and is the same character as `'πŸ˜€'` written directly.
passpasspasspass
elm / BadMainRecursiveMainTest (must not compile)elm19-compile-error
An annotated `main` that is mutually recursive with another function is rejected with a BAD MAIN error.
passpasspasspass
elm / BadMainRecursiveUnannotatedMainTest (must not compile)elm19-compile-error
An unannotated `main` that is mutually recursive with another function is rejected with a BAD MAIN error.
passpasspasspass
elm / BadMainTypeAliasMainTest (must not compile)elm19-compile-error
A `main` whose type is a record type alias is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeFunctionMainTest (must not compile)elm19-compile-error
A `main` of function type `Int -> Int -> Int` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeRecordMainTest (must not compile)elm19-compile-error
A `main` of record type `{ a : Int, b : ( Int, Int, Int ) }` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeThreeArgumentTypeMainTest (must not compile)elm19-compile-error
A `main` whose type is a custom type with three type parameters is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeTypeVariableMainTest (must not compile)elm19-compile-error
An unannotated `main` whose inferred type contains a type variable is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeUnitMainTest (must not compile)elm19-compile-error
A `main` of type `()` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadTupleATupleOfFourTest (must not compile)elm19-compile-error
A four-element tuple is rejected with a BAD TUPLE error.
passpasspasspass
elm / BoolAndTest
The `&&` operator gives `True` only when both operands are `True`, checked over all four combinations.
passpasspasspass
elm / BoolOrTest
The `||` operator gives `False` only when both operands are `False`, checked over all four combinations.
passpasspasspass
elm / BoolShortCircuitParserIdiomTest
A bounds check guarding an indexing call with `&&` (`idx < length src && unsafeIndex src idx /= ...`) stops the call from running past the end of the input.
passpasspasspass
elm / BoolShortCircuitTest
`&&` and `||` short-circuit: `False && x` and `True || x` never evaluate `x`.
passpasspasspass
elm / CapturedStagedFuncCallTest
A function parameter captured by a local helper and applied to two arguments works when the function passed in takes one argument and returns a function.
passpasspasspass
elm / CaseAsPatternTest
An as-pattern in a case branch, `((x :: _) as whole)`, binds both the list head and the whole list.
passpasspasspass
elm / CaseBoolTest
A case expression on a Bool with `True` and `False` branches selects the matching branch.
passpasspasspass
elm / CaseBranchSelectionTest
A `case` tries its branches in order: a branch whose pattern fails passes the value on, and the first that matches is evaluated with its pattern's bindings.
passpasspasspass
elm / CaseCharEscapedDuplicateTest (must not compile)elm19-bug-fix
A `case` on Char with two patterns for the same character written differently ('a' and '\u{0061}'): the second can never match, so it is a redundant pattern.
failpasspasspass
elm / CaseCharManyBranchTest
A case on Char with ten literal branches (`'0'` to `'9'`) and a wildcard maps digit characters to their values and anything else to -1.
passpasspasspass
elm / CaseCharTest
A case on Char with literal vowel branches and a wildcard picks the matching literal, falling back to the wildcard for other characters.
passpasspasspass
elm / CaseCtorArgPatternTest
A single-constructor custom type can be destructured by a pattern in a function parameter, as in `getId (Person id _)`.
passpasspasspass
elm / CaseCustomType4Test
A case on a custom type with four constructors and no arguments, with one branch per constructor, selects the right branch for each.
passpasspasspass
elm / CaseCustomType4WildcardTest
A case on a four-constructor custom type with two explicit branches and a wildcard sends the other two constructors to the wildcard.
passpasspasspass
elm / CaseCustomTypeTest
A case on a custom type whose constructors carry different numbers of arguments binds those arguments in each branch.
passpasspasspass
elm / CaseDeepNestTest
Case expressions on Int nested two and three levels deep, each with literal branches and a wildcard, reach the right innermost branch.
passpasspasspass
elm / CaseDeeplyNestedTest
Case expressions on `Maybe` nested three levels deep reach the right innermost branch.
passpasspasspass
elm / CaseDefaultTest
A case on Int with one literal branch and a wildcard sends every other value to the wildcard.
passpasspasspass
elm / CaseFanOutShadowTest
A function that destructures a custom type in its parameter and then cases on a `Result` combines the bound field with the `Ok` value, or returns -1 for `Err`.
passpasspasspass
elm / CaseGuardLikeTest
Checks that nested `case` expressions on `Bool` comparisons, used in place of guards, pick the right branch at each threshold.
passpasspasspass
elm / CaseInLambdaTest
Checks that a `case` expression on a `Bool` inside an anonymous function evaluates correctly, both when the lambda is bound to a name and when it is passed straight to another function.
passpasspasspass
elm / CaseInLetTest
Checks that a `case` expression on an `Order` can be the body of a `let` binding, with each of `GT`, `EQ` and `LT` selecting its own string.
passpasspasspass
elm / CaseIntTest
Checks that a `case` on an `Int` matches integer literal patterns and falls through to the wildcard for any other value.
passpasspasspass
elm / CaseListConsTest
Checks that a recursive function matching a list against `[]` and `x :: xs` sums the empty list, a one-element list and a three-element list correctly.
passpasspasspass
elm / CaseListTest
Checks that a `case` on a `List` distinguishes the empty list, a list of exactly one element (`[_]`) and any longer list (`_`).
passpasspasspass
elm / CaseListThreeWayTest
Checks that a `case` on a `List` with `[]`, `[x]` and `x :: xs` patterns, in that order, sends a one-element list to `[x]` rather than to the cons pattern.
passpasspasspass
elm / CaseManyBranchesTest
Checks that a `case` on an `Int` with seven literal branches and a wildcard selects the first, a middle and the last literal branch correctly.
passpasspasspass
elm / CaseMaybePairTest
Checks that a `case` on a tuple of two `Maybe Int` values, with one branch for each of the four `Just`/`Nothing` combinations, picks the right branch and binds the right values in each.
passpasspasspass
elm / CaseMaybeTest
Checks that a `case` on a `Maybe Int` returns the wrapped value for `Just` and a default of -1 for `Nothing`.
passpasspasspass
elm / CaseMixedPatternTest
Checks that a single `case` can match a custom type constructor whose argument is itself matched as a list, with `x :: _` and `[]` patterns nested inside the constructor pattern.
passpasspasspass
elm / CaseMultiFieldExtractTest
Checks that a `case` on a custom type binds every argument of a two-argument and a four-argument constructor to the right variable.
passpasspasspass
elm / CaseNestedCtorTest
Checks that constructor patterns can nest: a constructor pattern inside another (`Container (Wrap n)`), and a tuple pattern inside a constructor (`Box ( a, x )`).
passpasspasspass
elm / CaseNestedRecordAccessTest
Checks a function that destructures a constructor in its argument and then cases on a looked-up value, calling another function that also destructures a constructor argument and cases on a record field.
passpasspasspass
elm / CaseNestedTest
Checks that a `case` on one `Maybe` with a further `case` on a second `Maybe` inside each branch reaches all four combinations correctly.
passpasspasspass
elm / CaseOrderTest
Checks that a `case` on an `Order` maps each of `LT`, `EQ` and `GT` to its own string, using the results of `compare` on `Int` values.
passpasspasspass
elm / CaseResultTest
Checks that a `case` on a `Result` returns the `Ok` value, and -1 for any `Err`.
passpasspasspass
elm / CaseReturnFunctionTest
Checks that the branches of a `case` can each return a two-argument lambda, and that the returned function is applied with the right arithmetic.
passpasspasspass
elm / CaseReturningLambdaTest
Checks a `case` on a custom type whose first branch holds a nested `case` on a `String`, where every branch of both returns a two-argument lambda.
passpasspasspass
elm / CaseSharedBranchTest
Checks a `case` on a custom type whose first branch holds a nested `case` on the constructor's `String` argument.
passpasspasspass
elm / CaseSingleCtorBoolMultiTypeTest
A case expression matches `True` and `False` literal patterns inside a single-constructor custom type wrapping a `Bool`, while another single-constructor type, wrapping an `Int`, is defined in the same module.
passpasspasspass
elm / CaseSingleCtorBoolTest
A case expression matches `True` and `False` literal patterns inside a single-constructor custom type wrapping a `Bool`.
passpasspasspass
elm / CaseStringEmptyPatternTest
A case expression on a `String` matches the empty-string literal `""` alongside non-empty literal patterns and a wildcard.
passpasspasspass
elm / CaseStringEscapeTest
A case expression on a `String` matches literal patterns written with escape sequences: a newline, a tab and a double quote.
passpasspasspass
elm / CaseStringManyBranchTest
A case expression on a `String` with seven literal patterns (three-letter day abbreviations) and a wildcard selects the matching branch.
passpasspasspass
elm / CaseStringTest
A case expression on a `String` with two literal patterns and a wildcard returns the `Int` of the matching branch.
passpasspasspass
elm / CaseTreeTest
A case expression on a recursive custom type, a binary tree, drives a recursive function that counts the tree's nodes.
passpasspasspass
elm / CaseTripleTest
A case expression on a 3-tuple of `Int`s matches literal and wildcard patterns in order, taking the first branch that fits.
passpasspasspass
elm / CaseTupleLiteralTest
A case expression on a pair of `Int`s matches literal and wildcard patterns in order, so a pair that fits several patterns takes the first.
passpasspasspass
elm / CaseTupleTest
A case expression on a pair of `Int`s matches literal and wildcard patterns in order, taking the first branch that fits.
passpasspasspass
elm / CaseUnicodeCharTest
A case expression on a `Char` matches character literals outside ASCII: two Greek letters and a CJK ideograph.
passpasspasspass
elm / CharAstralClosureCaptureTest
An astral `Char` (code point above 0xFFFF) referred to by a lambda, or supplied as the first argument of a partially applied function, keeps its code point when the function is called later.
passpasspasspass
elm / CharAstralCustomFieldTest
An astral `Char` (code point above 0xFFFF) stored in a custom-type constructor's field keeps its code point when read back by pattern matching.
passpasspasspass
elm / CharAstralRecordFieldTest
An astral `Char` (code point above 0xFFFF) in a record field keeps its code point, next to an `Int` field and after a record update, and a record holding one is equal to a record literal with the same fields.
passpasspasspass
elm / CharAstralTupleTest
An astral `Char` (code point above 0xFFFF) in a pair and in a 3-tuple keeps its code point when read back with a tuple pattern, in a function's argument and in a destructuring `let`. How `Debug.log` prints such tuples i…
passpasspasspass
elm / CharCaptureEscapedTailDefTest
A tail-recursive local function that refers to a `Char` argument of its enclosing function still works when it is returned inside a list and called later.
passpasspasspass
elm / CharCasePredicateTest
A `case` on a `Char` with several character-literal branches, including the escaped literal `'\\'`, selects the branch matching the scrutinee.
passpasspasspass
elm / CharLiteralPatternMatchMinimalTest
A Char literal pattern for the double quote `'"'` matches at increasing depths of nesting: bare, inside a tuple, inside a `Maybe`, and inside a `Maybe ( Char, String )`.
passpasspasspass
elm / CharLiteralPatternMatchVariousTest
A `case` on a Char literal matches a pattern for the same literal, for a double quote, `{`, `a`, a backslash, a newline, `0` and a space.
passpasspasspass
elm / CharLiteralSurrogateEscapeTest (must not compile)
`'\u{D800}'` is not a Char literal: a surrogate code point is not a character.
failfailfailfail
elm / CharUnicodeTest
`Char.toCode` of non-ASCII character literals written as `\u{...}` escapes gives their code points: 955 for U+03BB and 8364 for U+20AC.
passpasspasspass
elm / ClosureCapture01Test
A lambda returned from a function captures a single-constructor custom-type argument and unwraps it with `case` when called.
passpasspasspass
elm / ClosureCapture02Test
A lambda returned from a function captures a `Maybe String` argument and matches on it with `case` when called.
passpasspasspass
elm / ClosureCapture03Test
A lambda returned from a function captures a value of a two-constructor custom type, both of whose constructors carry a payload, and matches on it with `case` when called.
passpasspasspass
elm / ClosureCapture04Test
A lambda returned from a function captures two `Maybe Int` arguments, each used only as the subject of a `case`, and adds the extracted values.
passpasspasspass
elm / ClosureCapture05Test
A lambda returned from a function captures a custom-type value holding two `Maybe String`s, and when called matches on it and then on each `Maybe` in turn.
passpasspasspass
elm / ClosureCapture06Test
A two-argument function matches on a custom-type value holding two `Maybe String`s and then on each `Maybe` in turn.
passpasspasspass
elm / ClosureCaptureBoolTest
Partially applying a `Bool -> Int -> Int` function to a `Bool` gives a function that remembers that `Bool`.
passpasspasspass
elm / ClosureCaptureRecordTest
A lambda returned from a function can use a captured record's fields, or the elements of a captured tuple bound by a `case` pattern.
passpasspasspass
elm / ClosureCaptureTupleTest
A lambda returned from a function captures a tuple and destructures it with a `let` pattern when called.
passpasspasspass
elm / ClosureDifferentClosuresPerIfBranchInsideACaseTest
A function whose body is a `case` containing an `if` chain returns a different lambda from each branch, and the chosen lambda is applied to a further argument.
passpasspasspass
elm / CombinatorBComposeTest
The B combinator, function composition, built only from S and K: `b square inc 4` is `square (inc 4)`, which is 25.
passpasspasspass
elm / CombinatorBSumMapTest
The B combinator, built from S and K, composing `sum` with a partially applied `map`: the sum of `[ 1, 2, 3 ]` each plus one is 9.
passpasspasspass
elm / CombinatorCConsTest
The C combinator, which swaps two arguments, built from S and K and applied to the cons operator: `c (::) [ 2, 3 ] 1` is `1 :: [ 2, 3 ]`.
passpasspasspass
elm / CombinatorCFlipTest
The C combinator, which swaps two arguments, built from S and K: `c sub 10 3` is `sub 3 10`, which is -7.
passpasspasspass
elm / CombinatorIIdentityTest
The I combinator, identity, written as `s k k`: `i 42` is 42.
passpasspasspass
elm / CombinatorListStringTest
SKI-style combinators applied to lists, strings and functions over them, each printing its result.
passpasspasspass
elm / CombinatorPLengthsTest
The P combinator, which applies one function to two arguments and combines the results: `p (+) length [ 1, 2, 3 ] [ 4, 5 ]` is 5.
passpasspasspass
elm / CombinatorRefIdentityBugTest
A B combinator defined with all its arguments, `b f g y = s (k s) k f g y`, used in the same program as a separate application of `s` to a different function: `b square inc 4` must still be `square (inc 4)`, which is 25.
passpasspasspass
elm / CombinatorSFeedTest
The S combinator, which gives its argument to a function together with a second function's result on that argument: `s (+) double 5` is `5 + double 5`, which is 15.
passpasspasspass
elm / CombinatorSPalindromeTest
The S combinator with a one-argument string function: `s (++) bang "straw"` is `"straw" ++ bang "straw"`, which is `"strawstraw!"`.
passpasspasspass
elm / CombinatorSpCombineTest
The SP combinator, which applies two functions to the same argument and combines the results: `sp mul inc double 6` is `inc 6 * double 6`, which is 84.
passpasspasspass
elm / CombinatorSpMulTest
The SP combinator with operator sections as its functions: `sp (*) ((+) 1) ((*) 2) 6` is `7 * 12`, which is 84.
passpasspasspass
elm / CombinatorStdlibTCombinatorPipeListIntoComposedOpsTest
The T combinator, built from S and K inside a `let`, passing `[ 1, 2, 3 ]` to the composition of a sum and a doubling map: the result is 12.
passpasspasspass
elm / CombinatorTPipeTest
The T combinator, built from S and K, passing `[ 1, 2, 3 ]` to the composition of `sum` and `map ((*) 2)`: the result is 12.
passpasspasspass
elm / CombinatorTThrushTest
The T combinator, which applies its second argument to its first, built from S and K: `t 7 (\x -> x * 3)` is 21.
passpasspasspass
elm / CombinatorTest
SKI-style combinators, most of them built from S and K, each applied to `Int` arguments and printing its result.
passpasspasspass
elm / CombinatorWConcatTest
The W combinator, which passes one argument twice, applied to string append: `w (++) "hi"` is `"hihi"`.
passpasspasspass
elm / CombinatorWDupTest
The W combinator, which passes one argument twice: `w mul 9` is `mul 9 9`, which is 81.
passpasspasspass
elm / CompilerIssue1491PhantomTupleUnsoundTest (must not compile)elm19-bug
A phantom type parameter `( m, m )` is accepted where `( OnePlus m, m )` is required.
failfailfailfail
elm / CompilerIssue1550RecordExtensionDuplicateFieldTest (must not compile)elm19-bug
Extending a record type with a field it already has is accepted, and the field's type is replaced.
failfailfailfail
elm / CompilerIssue1639LetAnnotationTypeVarCrashTest (must not compile)elm19-bug
A let annotation with a type variable, inside an unannotated function, crashes the compiler.
failfailfailfail
elm / CompilerIssue1669InfiniteTypeArrayGetSetHangTest (must not compile)elm19-bug
A function whose type would be infinite, built from `get` and `set` on a local array type in a pipeline, is rejected with a type error.
failfailfailfail
elm / CompilerIssue1691ContradictoryExtensibleRecordHangTest (must not compile)elm19-bug
A point-free definition whose extensible-record annotations contradict each other is rejected with a type error.
failfailfailpass
elm / CompilerIssue1700InfiniteTypeFoldrLambdaHangTest (must not compile)elm19-bug
A `foldr` lambda that conses a list onto an element (`uniq :: elem`) is rejected with an infinite-type error.
failfailfailfail
elm / CompilerIssue1748DestructureMissingFieldCrashTest (must not compile)elm19-bug
Destructuring a record field that does not exist, in an unannotated function, crashes the compiler.
failfailfailfail
elm / CompilerIssue1766LetMutualRecursionMismatchTestelm19-bug
Mutually recursive let functions give a type a false "mismatch" with itself.
failfailfailfail
elm / CompilerIssue1785ExtensibleAliasOfUnitTest (must not compile)elm19-bug
An extensible record alias applied to `()`, a record extending a non-record, is rejected with an error.
failfailfailfail
elm / CompilerIssue1789RankCrashMissingJustTest (must not compile)elm19-bug
A missing `Just` in a case branch crashes the type checker with `[rank = 1]`.
failfailfailfail
elm / CompilerIssue1793ComparableTupleLetCrashTestelm19-bug
Comparing tuples containing a `comparable` in a let binding crashes the compiler.
failfailfailfail
elm / CompilerIssue1813TcoClosureCapturesMutatedArgTestelm19-bug
A lambda created in a self tail call keeps the argument value of its own call.
failfailfailfail
elm / CompilerIssue1839RigidLetAnnotationCrashTest (must not compile)elm19-bug
A let annotation with a free type variable, in an unannotated function, crashes the compiler.
failfailfailfail
elm / CompilerIssue1858AnnotatedPolymorphicRecursionTestelm19-bug
A recursive call at a different type argument is rejected despite the annotation.
failfailfailfail
elm / CompilerIssue1866PhantomExtensibleRecordHangTest (must not compile)elm19-bug
Composing two functions on phantom types over different extensible records, taken from one record argument, is rejected with a type error.
failfailfailpass
elm / CompilerIssue1890RecordUpdateMutualRecursionCrashTestelm19-bug-fix
Mutually recursive unannotated functions with a record update crash the compiler.
failfailpasspass
elm / CompilerIssue1896ExtendCustomTypeCrashTest (must not compile)elm19-bug
Extending a custom type as if it were a record crashes the compiler while reporting the error.
failfailfailfail
elm / CompilerIssue1916PhantomExtensibleAliasCrashTestelm19-bug
A phantom type over an extensible record in a function alias crashes the compiler.
failfailfailfail
elm / CompilerIssue1951OpenRecordLetCrashTest (must not compile)elm19-bug
Unifying a closed and an open record type in let bindings crashes the compiler.
failfailfailfail
elm / CompilerIssue1952ExtendIntCrashTest (must not compile)elm19-bug
Extending `Int` as if it were a record crashes the compiler while reporting the error.
failfailfailfail
elm / CompilerIssue1964AnnotatedPolymorphicRecursionWrapperTestelm19-bug
A recursive call at a wrapped type argument is rejected despite the annotation.
failfailfailfail
elm / CompilerIssue1974RankCrashWrongAnnotationTest (must not compile)elm19-bug
A wrong argument annotation on a recursive function called from another crashes the type checker.
failfailfailfail
elm / CompilerIssue1975LetOrderCrashTest (must not compile)elm19-bug
A type error in a let block crashes the compiler, depending on the names of its bindings.
failfailfailfail
elm / CompilerIssue2001RankCrashParametricLetAnnotationTest (must not compile)elm19-bug
A let annotation `Dict a b` inside an unannotated function crashes the compiler.
failfailfailfail
elm / CompilerIssue2006IndexOutOfBoundsMaybeWithDefaultTest (must not compile)elm19-bug
Applying a `Subtype -> Subtype` function from `withDefault` to the whole model crashes the compiler.
failfailfailfail
elm / CompilerIssue2013RankCrashLambdaLetAnnotationTest (must not compile)elm19-bug
A let annotation `b : h` in a piped lambda crashes the compiler.
failfailfailfail
elm / CompilerIssue2014RankCrashIdentityLetAnnotationTest (must not compile)elm19-bug
A let annotation `b : h` in a lambda defining an annotated identity function crashes the compiler.
failfailfailfail
elm / CompilerIssue2017TcoContinuationShadowedTestelm19-bug
A lambda passed in a self tail call must call the original continuation, not itself.
failfailfailfail
elm / CompilerIssue2019AliasOfTypeVariableTestelm19-bug
An alias `MyType k = k` is not interchangeable with `k` in a result position.
failfailfailfail
elm / CompilerIssue2027IncompatibleExtensibleRecordsHangTest (must not compile)elm19-bug
Using one value as two incompatible extensible records (`Tricky x x`) must be a type error.
failfailfailpass
elm / CompilerIssue2036LensRecordUpdateHangTest (must not compile)elm19-bug
A lens whose setter takes its arguments in the wrong order must be a type error.
failfailfailfail
elm / CompilerIssue2057CallSiteChangesInferredTypeTestelm19-bug
Two annotated callers of a function with unannotated mutually recursive let functions are wrongly rejected.
failfailfailfail
elm / CompilerIssue2064ExtendStringNotEnoughBytesTest (must not compile)elm19-bug
Extending `String` as if it were a record inside a custom type crashes the compiler.
failfailfailpass
elm / CompilerIssue2066RankCrashNumberFloatTest (must not compile)elm19-bug
Annotating `number` arguments compared with a `Float` crashes the type checker.
failfailfailfail
elm / CompilerIssue2072ExtendUnitInResultCrashTest (must not compile)elm19-bug
A result annotation that extends `()` as if it were a record must be rejected with an error report, not crash the compiler.
failfailfailpass
elm / CompilerIssue2077RankCrashExtensibleLetAnnotationTest (must not compile)elm19-bug
A `let` annotation that gives an unannotated argument a more general extensible-record type must be reported as a type error, not crash the compiler.
failfailfailfail
elm / CompilerIssue2083ExtendCustomTypeFieldAccessCrashTest (must not compile)elm19-bug
Extending a custom type as if it were a record must be rejected with an error report, not crash the compiler.
failfailfailfail
elm / CompilerIssue2097ExtensibleUnitArgCrashTest (must not compile)elm19-bug
An extensible-record alias applied to `()` must be rejected with an error report, not crash the compiler.
failfailfailpass
elm / CompilerIssue2100LetAnnotationRank2CrashTest (must not compile)elm19-bug
A wrong annotation on a let-bound function that uses an outer argument must be reported as a TYPE MISMATCH, not crash the compiler.
failfailfailfail
elm / CompilerIssue2105ExtensibleFoldlCrashTest (must not compile)elm19-bug
Folding with a function that extends a record type parameter must produce a complete type error report, not crash the compiler.
failfailfailfail
elm / CompilerIssue2106FoldlExtensibleRecordHangTest (must not compile)elm19-bug
A `foldl` whose step function extends an extensible-record type parameter must be rejected with a type error, not hang the compiler.
failfailfailfail
elm / CompilerIssue2108IfBranchExtensibleRecordHangTest (must not compile)elm19-bug
`if` branches of incompatible extensible-record function types must be rejected with a type error, not hang the compiler.
failfailfailpass
elm / CompilerIssue2112CaseBranchInfiniteTypeHangTest (must not compile)elm19-bug
`case` branches that could only agree through an infinite type must be rejected with a type error, not hang the compiler.
failfailfailfail
elm / CompilerIssue2119MutualRecursionUnannotatedTestelm19-bug
An exposed, unannotated, mutually recursive function used from another module compiles and runs.
failfailfailfail
elm / CompilerIssue2146RoseLambdaPatternCrashTest (must not compile)elm19-bug
A type error involving a lambda pattern on a custom type must be reported normally, not crash the compiler.
failfailfailfail
elm / CompilerIssue2148RecordUpdateFoldrCrashTest (must not compile)elm19-bug
A type error in a `foldr` over records must be reported normally, not crash the compiler.
failfailfailfail
elm / CompilerIssue2153RecursiveCallWrongArgCrashTest (must not compile)elm19-bug
A recursive call with an argument of the wrong type must be reported as a TYPE MISMATCH, not crash the compiler.
failfailfailfail
elm / CompilerIssue2176ExtensibleUnitAliasCrashTest (must not compile)elm19-bug
A function between records typed with an extensible alias applied to `()` must be rejected with an error report, not crash the compiler.
failfailfailpass
elm / CompilerIssue2182ExtensibleFunctionAliasCrashTest (must not compile)elm19-bug
An alias that extends its parameter with a field the parameter already has is not a type.
passpasspasspass
elm / CompilerIssue2184LetRecursionTooManyArgsCrashTest (must not compile)elm19-bug
Two let-bound recursive functions that call themselves with too many arguments must be reported as a type error, not crash the compiler.
failfailfailfail
elm / CompilerIssue2200ConstrainedExtensibleErrorCrashTest (must not compile)elm19-bug
A type error for an extensible record whose row variable is the constrained `number` must be reported completely, not crash the compiler.
failfailfailfail
elm / CompilerIssue2206RecordUpdateLetCrashTest (must not compile)elm19-bug-fix
A type error in a record update inside a let crashes the compiler, depending on a binding's name.
failfailpasspass
elm / CompilerIssue2207MutualRecursionSecondFunctionTestelm19-bug
The second of two exposed, unannotated, mutually recursive functions can be used from another module.
failfailfailfail
elm / CompilerIssue2214LensSetterArgumentOrderHangTest (must not compile)elm19-bug
The compiler rejects, with a type error, a lens record whose setter takes its arguments in the wrong order.
failfailfailfail
elm / CompilerIssue2221TcoContinuationTestelm19-bug
A tail-recursive function that builds a continuation on each call computes `g 5 identity` as 120.
failfailfailfail
elm / CompilerIssue2241FoldMapInfiniteTypeHangTest (must not compile)elm19-bug
The compiler rejects, with a type error, a call whose tuple-accumulating lambda does not fit the function it is passed to.
failfailfailfail
elm / CompilerIssue2252IdentityAliasTestelm19-bug
A type alias `Identity a = a` is interchangeable with `a`, so `map change = change` type-checks against `(a -> b) -> Identity a -> Identity b`.
failfailfailfail
elm / CompilerIssue2268TcoClosureCaptureTestelm19-bug
Lambdas created inside a tail-recursive function each keep the argument value they were created with.
failfailfailfail
elm / CompilerIssue2274MutualRecursionTransmuteTest (must not compile)elm19-bug
The compiler rejects `eraseType : a -> b` because the unannotated mutually recursive `f` and `g` only have type `a -> b -> b`.
failfailfailfail
elm / CompilerIssue2295LambdaLetAnnotationCrashTest (must not compile)elm19-bug
The compiler reports a TYPE MISMATCH for a let annotation `b : b` whose value is a lambda argument.
failfailfailfail
elm / CompilerIssue2296LetAnnotationFreeVarCrashTest (must not compile)elm19-bug
The compiler reports a type error for a let annotation that uses a type variable belonging to an unannotated enclosing function.
failfailfailfail
elm / CompilerIssue2298IdentityAliasResultTestelm19-bug
A type alias `Msg a = a` in an annotation's result is interchangeable with `a`, so `make = identity` type-checks against `a -> Msg a`.
failfailfailfail
elm / CompilerIssue2301InnerSkolemOuterVarCrashTest (must not compile)elm19-bug
The compiler reports a type error when a let annotation's type variable must equal the type of an enclosing function's argument.
failfailfailfail
elm / CompilerIssue2338LambdaLetAnnotationTupleCrashTest (must not compile)elm19-bug
The compiler reports a TYPE MISMATCH for a let annotation `( Int, x )` inside a lambda passed to a higher-order function.
failfailfailfail
elm / CoreIssue1141UnusedPortCallBreaksSubscriptionTestelm19-bug
An unused port call (`_ = echoOut "unused"` in `init`) breaks a port subscription elsewhere.
failfailfailfail
elm / CoreIssue988NanContainerSelfEqualityTestelm19-bug
In Elm 0.19.1 any container holding NaN equals itself, because `(==)` first checks whether the two sides are the same object.
failfailfailfail
elm / CovEtaDebugLogTest
Checks a function defined with fewer parameters than its annotated type: `mk : Int -> Fn`, where `Fn` is an alias of `Int -> Int`, takes one parameter and returns a `let`-bound function whose body calls `Debug.log`.
passpasspasspass
elm / CovForeignTypesTest
Checks the use of two values from another module of the same project: `secretValue`, whose annotation names a type alias that its module does not expose, and a field of `config`, read through the module name as `CovFore…
passpasspasspass
elm / CovLambdaBoundaryCaseBoundaryInARecursiveValueTest
A top-level function defined as a lambda whose `case` returns a different lambda per branch, one of which calls the function recursively.
passpasspasspass
elm / CovLambdaBoundaryCaseBoundaryUnderAFunctionAliasTest
A function whose result type is a type alias for a function type, with a `case` that returns a different lambda per branch.
passpasspasspass
elm / CovLambdaSetFunctionsDestructuredFromTuplesAndRecordsTest
Lambdas taken out of a tuple and a record by destructuring `let` patterns, put in a list and applied in turn.
passpasspasspass
elm / CovLambdaSetFunctionsInRecordsTuplesAndMaybeTest
Functions stored in record fields, tuples and a `Maybe`, taken out again and applied.
passpasspasspass
elm / CovPatternSplitTupleAndConstructorParametersMatchedByCaseTest
Functions that take a tuple or a custom-type value as their parameter and take it apart with `case`, including literal patterns (`( 0, b )`, `Q True n`) and a `Float` component.
passpasspasspass
elm / CovPortIncomingArrayTest
A port module declaring an incoming port whose values are `Array Int`.
passpasspasspass
elm / CovPortIncomingJSONValueTest
A port module declaring an incoming port whose values are `Json.Encode.Value`.
passpasspasspass
elm / CovPortIncomingTripleTest
A port module declaring an incoming port whose values are an `( Int, String, Bool )` triple.
passpasspasspass
elm / CovPortIncomingUnitTest
A port module declaring an incoming port whose values are `()`.
passpasspasspass
elm / CovPortOutgoingJSONValueTest
A port module declaring an outgoing port that sends a `Json.Encode.Value`.
passpasspasspass
elm / CovPortOutgoingUnitTest
A port module declaring an outgoing port that sends `()`.
passpasspasspass
elm / CovTailRecPairParameterPassedUnchangedLetBoundAndRebuiltTest
Self tail-recursive functions with a pair parameter that is destructured in a `let`, then passed on unchanged, rebuilt with its components swapped, or replaced by a `let`-bound pair.
passpasspasspass
elm / CovTailRecPairParametersSwappedAndALoopReturningALambdaTest
Self tail-recursive functions over pair parameters: one that swaps a pair's components or exchanges its two pair arguments, and one that returns a lambda in its base case.
passpasspasspass
elm / CovTailRecSplitATripleParameterTest
A self tail-recursive function that destructures a triple of `Int`, `Int` and `Float` in its parameter pattern and rebuilds it on each call.
passpasspasspass
elm / CustomTypeFuncFieldTest
A custom type whose single constructor wraps a function can be unwrapped by an argument pattern and the function called.
passpasspasspass
elm / CustomTypeMultiFieldTest
A value of a custom type whose constructor has three arguments of different types (`String`, `Int`, `Bool`) can be built and logged.
passpasspasspass
elm / CustomTypeNestedTest
A value of a recursive, parameterised custom type (a binary tree with values in its leaves) can be built several levels deep and logged.
passpasspasspass
elm / CustomTypePatternTest
Functions that take apart a custom-type value with a constructor pattern in their argument extract the right field.
passpasspasspass
elm / CustomTypeUnboundRowVariableTest (must not compile)
The extension variable of a record type in a constructor is a parameter of the type.
passpasspasspass
elm / CustomTypeUnboundVariableTest (must not compile)
A custom type's constructors use only the type's parameters.
passpasspasspass
elm / CyclicDefinitionATopLevelValueDefinedByItselfTest (must not compile)elm19-compile-error
A top-level value defined in terms of itself is rejected with a CYCLIC DEFINITION error.
passpassfailfail
elm / CyclicValueALetValueDefinedByItselfTest (must not compile)elm19-compile-error
A let-bound value defined in terms of itself is rejected with a CYCLIC VALUE error.
passpassfailpass
elm / DebugLogLambdaBoundaryTest
A `case` branch that returns a lambda whose parameter is named `log` can still call `Debug.log` inside that lambda.
passpasspasspass
elm / DebugLogRecordTupleFieldTest
A `Debug.log` call can be used directly as an `Int` or `Float` component of a tuple or field of a record, and the value it returns is stored there.
passpasspasspass
elm / DebugNumberAtFloatTest
Unannotated functions over the `number` type that use `Debug.toString` and `Debug.log` give the right results when called with a `Float` and with an `Int` in the same program.
passpasspasspass
elm / DecisionTreeAdvancedDeepNestingWithFallbackTest
A `case` on a pair of pairs whose first branch matches all-zero literals and whose second binds the first and last numbers falls through to the second branch.
passpasspasspass
elm / DeepEqualityTest
`==` and `/=` give the exact answer on values nested more than 100 levels deep.
passpasspasspass
elm / DeepNestStressTest
Deeply nested lists, tuples, records and `let` expressions can be built and taken apart.
passpasspasspass
elm / DestructCaptureTest
A tuple pattern in a `let` inside one function does not interfere with a same-named variable in the function that calls it.
passpasspasspass
elm / DictMapStagedCaptureTest
A two-argument function passed as a parameter and applied to both of its arguments inside a lambda that a mapping function calls with two arguments receives both of them.
passpasspasspass
elm / EdgeCaseAllDestructPatternsTest
`let` bindings destructure a tuple, a record, a tuple returned by a `case`, and an `as` pattern, and each bound name has the expected value.
passpasspasspass
elm / EitherTypeTest
A custom type with two type parameters and one constructor for each can be built, mapped and pattern-matched.
passpasspasspass
elm / EmbeddedEmptyStringCaptureTest
A local function that refers to an empty string defined in the enclosing `let` sees it as empty: it is equal to `""`, and the captured string it returns is `""`.
passpasspasspass
elm / EmbeddedMixedConstantsTest
A record holding `Nothing`, `[]`, `True`, `""` and `()` returns each value unchanged when its field is read.
passpasspasspass
elm / EmbeddedNilCaptureTest
A local function that refers to an empty list defined in the enclosing `let` matches it against the `[]` pattern.
passpasspasspass
elm / EmbeddedNilInCustomTypeTest
An empty list stored in a custom type constructor and taken back out by a `case` is still empty, with length 0.
passpasspasspass
elm / EmbeddedNilRecursiveTest
A recursive function that returns `[]` for an empty list builds the doubled positive elements of its input, skipping the rest.
passpasspasspass
elm / EmbeddedNothingCallbackTest
A function that pattern-matches a `Maybe` returns `Nothing` for `Nothing` and applies its function argument to a `Just` payload.
passpasspasspass
elm / EmbeddedNothingCaptureTest
A local function that refers to a `Nothing` defined in the enclosing `let` matches it against the `Nothing` pattern.
passpasspasspass
elm / EmbeddedNothingInCustomTypeTest
A `Nothing` stored in a custom type constructor and taken back out by a `case` still matches the `Nothing` pattern.
passpasspasspass
elm / EmbeddedNothingInRecordTest
A `Nothing` stored in a record field and read back with `.value` matches the `Nothing` pattern.
passpasspasspass
elm / EmbeddedNothingInTupleTest
A tuple pattern in a `let` takes `Nothing` and `Just 42` back out of a pair, and each matches the right pattern.
passpasspasspass
elm / EmbeddedNothingMapTest
A local `map` with a function that matches `Maybe` maps each `Nothing` to -1 and each `Just` to its payload.
passpasspasspass
elm / EmbeddedNothingPolymorphicTest
`Nothing`, `[]` and `""` pass unchanged through the polymorphic `identity`, the first two then also through a function with a concrete type.
passpasspasspass
elm / EmbeddedNothingRecursiveTest
A recursive list search returns `Just` the first matching element, or `Nothing` once it reaches the end of the list.
passpasspasspass
elm / EmbeddedReturnNilTest
A recursive filter returns the empty list when no element passes, and the caller receives it like any other list.
passpasspasspass
elm / EmbeddedReturnNothingTest
A function that returns `Nothing` for one input and `Just` for another is consumed by a `case` in the caller.
passpasspasspass
elm / EmbeddedUnitCaptureTest
A local function returns a tuple containing a unit value bound in the enclosing `let`, and the tuple is destructured by a pattern.
passpasspasspass
elm / EntryMainOfRootModuleTest
A program's entry point is the `main` of the module being compiled, even when an imported module also defines and exposes a `main`.
passpasspasspass
elm / EqualityStringChainCaseTest
A `case` on a `( String, Bool )` tuple with string-literal patterns selects the right branch, and direct `==` on strings gives the right answer, in the same module.
passpasspasspass
elm / ErasedListSpecializationTest
A polymorphic self-recursive `count : List a -> Int` gives the right length when called both on `List Int` values and on `[]`, whose element type nothing constrains.
passpasspasspass
elm / EscapeCustomCaseScrutineeTest
A value of a user-defined custom type, built in the call and taken apart by a `case` in another function, yields its payload.
passpasspasspass
elm / EscapeTopLevelTupleTest
A tuple defined as a top-level constant is destructured in a `let` pattern into its two components.
passpasspasspass
elm / EtaExpandStateFunctionSequenceTest
A state-passing `sequence` written with `andThen` and `pure` over a function type alias, `St a = Int -> a`, whose definitions take more parameters than their annotations show.
passpasspasspass
elm / EtaExpandStateTest
A state monad over the function alias `St a = Int -> ( Int, a )`, with `sequence` written recursively using `andThen` and `pure`, threads its state correctly.
passpasspasspass
elm / Fileelm19-bug
A root module named like a module of a dependency crashes the compiler.
failfailfailfail
elm / FlagsRecordTest
A `Platform.worker` whose flags are a record of an `Int`, a `String` and a `Bool` receives the decoded record in `init`.
passpasspasspass
elm / FlipFunctionTest
A locally defined, annotated `flip` swaps the two arguments of the function it is given.
passpasspasspass
elm / FloatEdgeTest
Float edge cases: `round` on halves, NaN in equality, `min` and `compare`, `truncate` of NaN, and an Int power beyond 2^32.
passpasspasspass
elm / FunctionAccumulatorFunctionLookupTest
Looking up a function in a list of key and function pairs, and applying the function found, gives the right result.
passpasspasspass
elm / FunctionBasicTest
Simple unannotated top-level functions of one and two arguments return the right values.
passpasspasspass
elm / FunctionChainedPartialApplicationTest
Partially applying a three-argument lambda twice, one argument at a time, gives a function, which `Debug.log` prints as `<function>`.
passpasspasspass
elm / FunctionCompappendWithStringTest
A function whose arguments have the `compappend` constraint (comparable and appendable) works when called with `String`s.
passpasspasspass
elm / FunctionMultiArgTest
Unannotated top-level functions of three, four and five arguments return the sum of their arguments.
passpasspasspass
elm / FunctionUnannotatedCompappendTest
A module containing an unannotated function that both compares and appends its arguments compiles, with the type `compappend` inferred.
passpasspasspass
elm / FunctionValueChoiceTest
Top-level values defined by an `if` that picks between two lambdas can be both called directly and passed to a local `foldl`, and a function returning a tuple from an `if` can be destructured.
passpasspasspass
elm / FunctionValuesChosenByIfCaseAndTupleTest
Functions chosen at run time by `if`, `case` and a returned tuple are called correctly.
passpasspasspass
elm / HOParamApplyTwoTest
A let-bound higher-order function that applies its function parameter to two arguments works with a two-parameter lambda.
passpasspasspass
elm / HeaderExposesAliasOpenTest (must not compile)
A header cannot expose a type alias with `(..)`.
passpasspasspass
elm / HeaderExposesConstructorByNameTest (must not compile)
A header cannot expose a constructor by name.
passpasspasspass
elm / HeaderExposesOperatorTest (must not compile)
A module's header cannot expose an operator.
passpasspasspass
elm / HeaderExposesTwiceTest (must not compile)
No item may occur twice in a header's exposing list.
passpasspasspass
elm / HeaderExposesTypeTwiceTest (must not compile)
A header cannot expose a type both closed and with its constructors.
passpasspasspass
elm / HeaderExposesUndeclaredValueTest (must not compile)
A header exposes only values the module declares.
passpasspasspass
elm / HelloTest
The smallest program: a `main` that logs the string `"hello"` with `Debug.log` and renders it as text.
passpasspasspass
elm / HeteroClosureIntFloatTest
Partial applications of two different functions, one that has been given an `Int` and one that has been given a `Float`, can be chosen by an `if` and then called.
passpasspasspass
elm / HigherOrderFilterLikeFunctionTest
A let-bound function that takes a predicate and a list, and keeps the list's head when the predicate holds, gives `[1]` for a predicate that always returns `True`.
passpasspasspass
elm / HigherOrderFunctionChosenByIfTest
A higher-order function chosen by an `if` and then applied to a function argument gives the right result.
passpasspasspass
elm / HigherOrderFunctionFactoryTest
A let-bound function that returns a lambda capturing its argument produces a working function.
passpasspasspass
elm / HigherOrderReturnLambdaBasedOnConditionTest
A let-bound function that returns one of two lambdas depending on a `Bool` can be applied to a further argument in the same call.
passpasspasspass
elm / HigherOrderTest
Simple higher-order functions apply their function argument the right number of times.
passpasspasspass
elm / HigherOrderTripleNestedFunctionTest
A function whose body is a lambda returning a lambda can be called with all three arguments at once.
passpasspasspass
elm / HoleyAliasTwoParamsTest
A type alias with two type parameters, used as a constructor field, keeps each parameter bound to its own argument.
passpasspasspass
elm / ImportAliasOpenItemTest (must not compile)
An import cannot name a type alias with `(..)`.
passpasspasspass
elm / ImportAliasQualifiedTest (must not compile)
The name after `as` in an import is a single upper-case identifier.
passpasspasspass
elm / ImportClosedTypeConstructorTest (must not compile)
A custom type exposed without `(..)` exposes no constructor, even one spelt as the type.
passpasspasspass
elm / ImportClosedTypeOpenItemTest
`import M exposing (T(..))` of a type that `M` exposes closed imports the type and no constructors.
passpasspasspass
elm / ImportCycleTest (must not compile)
Modules may not import each other in a cycle.
passpasspasspass
elm / ImportExposingAllTest
`exposing (..)` in an import brings in everything the imported module exposes.
passpasspasspass
elm / ImportExposingItemsTest
An import's exposing list brings exactly its items into scope, with what the imported module's header exposes.
passpasspasspass
elm / ImportOperatorItemTest
Importing an operator by name checks that the module has it, and binds nothing new.
passpasspasspass
elm / ImportResolutionQualifiedImportedFunctionTest
A call written with the module qualifier, `Basics.negate`, resolves to the imported function even though the module is also imported with `exposing (..)`.
passpasspasspass
elm / ImportTypeByNameLaterReplacesTest
When two imports expose a type of the same name by name, the later import's type is the one the name denotes: the name is not ambiguous.
passpasspasspass
elm / ImportUnexposedValueTest (must not compile)
A value its module's header does not expose cannot be used, even qualified.
passpasspasspass
elm / ImportUnknownOperatorTest (must not compile)
An import cannot name an operator its module does not have.
passpasspasspass
elm / ImportedModuleTypeErrorTest (must not compile)
A program whose imported module has a type error is rejected as a whole.
passpasspasspass
elm / IndirectCallFloatTest
Functions of type `Float -> Float` passed to higher-order functions, including one built with `>>`, return the right Float values.
passpasspasspass
elm / InfiniteTypeSelfAppliedArgumentOnBothSidesTest (must not compile)elm19-compile-error
A function argument applied to itself is rejected with an INFINITE TYPE error.
passpasspasspass
elm / InfixAssocLeftArithTest
`-`, `/` and `//` associate to the left.
passpasspasspass
elm / InfixAssocPipesTest
`|>` associates to the left and `<|` to the right.
passpasspasspass
elm / InfixAssocRightConsAppendTest (must not compile)
`::` and `++` (both precedence 5) associate to the right, so `"a" ++ "b" :: [ "c" ]` does not type.
passpasspasspass
elm / InfixAssocRightPowTest
`^` associates to the right.
passpasspasspass
elm / InfixIfExtendsRightTest
An `if` extends as far right as it can: its `else` branch takes in a chain after it.
passpasspasspass
elm / InfixLastOperandAnyExprTest
The last operand of a chain may be any expression: an `if` or a lambda.
passpasspasspass
elm / InfixMixedAssocComposeTest (must not compile)
`f << g >> h` is not a phrase: `<<` and `>>` have equal precedence and associate in opposite ways.
passpasspasspass
elm / InfixMixedAssocPipesTest (must not compile)
`a |> f <| b` is not a phrase: `|>` and `<|` have equal precedence and associate in opposite ways.
passpasspasspass
elm / InfixNegatedOperandTest
A negation symbol in an operator chain negates the atomic expression after it, and no more.
passpasspasspass
elm / InfixNoQualifiedOperatorTest (must not compile)
`1 Basics.+ 2` is not an expression: no operator is qualified.
passpasspasspass
elm / InfixNoSectionLeftTest (must not compile)
`(1 +)` is not an expression: Elm has no operator sections.
passpasspasspass
elm / InfixNoSectionRightTest (must not compile)
`(+ 1)` is not an expression: Elm has no operator sections.
passpasspasspass
elm / InfixNonAssocCompareTest (must not compile)
`a < b == c` is not a phrase: `<` and `==` have equal precedence and associate neither way.
passpasspasspass
elm / InfixNonAssocEqTwiceTest (must not compile)
`a == b == c` is not a phrase: `==` associates neither way.
passpasspasspass
elm / InfixNonAssocSeparatedLegalTest
Two non-associative operators of equal precedence may share a chain when an operator of lower precedence stands between them.
passpasspasspass
elm / InfixPrecAddOverConsTest
`+` (precedence 6) binds more tightly than `::` (precedence 5).
passpasspasspass
elm / InfixPrecAndOverOrTest
`&&` (precedence 3) binds more tightly than `||` (precedence 2).
passpasspasspass
elm / InfixPrecAppendOverEqTest
`++` (precedence 5) binds more tightly than `==` (precedence 4).
passpasspasspass
elm / InfixPrecApplicationFirstTest
Application binds more tightly than any operator.
passpasspasspass
elm / InfixPrecCompareOverAndTest
`<` (precedence 4) binds more tightly than `&&` (precedence 3).
passpasspasspass
elm / InfixPrecComposeOverPipeTest
`<<` (precedence 9) binds more tightly than `|>` (precedence 0).
passpasspasspass
elm / InfixPrecMulOverAddTest
`*` (precedence 7) binds more tightly than `+` (precedence 6).
passpasspasspass
elm / InfixPrecOrOverPipeTest
`||` (precedence 2) binds more tightly than `|>` (precedence 0).
passpasspasspass
elm / InfixPrecPowOverMulTest
`^` (precedence 8) binds more tightly than `*` (precedence 7).
passpasspasspass
elm / InlineDupLetNamesTest
A function whose body does a `case` on a tuple of its arguments gives the right result when one call to it is passed as an argument to another.
passpasspasspass
elm / JoinpointABI23Majority3FlatTest
Checks a function whose `case` branches each return a lambda for the rest of its arguments, called with all four arguments at once.
passpasspasspass
elm / LambdaBoundaryCaptureTest
Checks that a lambda nested inside `case` branches refers to the variable it names, not to another binding that appears around it.
passpasspasspass
elm / LambdaCaseBoundaryTest
Checks functions whose body is a `case` on the first argument that returns a two-parameter lambda in each branch.
passpasspasspass
elm / LambdaLetBoundaryTest
Checks functions that bind values in a `let` and then return a lambda for their remaining arguments.
passpasspasspass
elm / LambdaPatternArgTest
Checks anonymous functions whose parameters are tuple, record and wildcard patterns.
passpasspasspass
elm / LargeDispatchCaseTest
Checks a `case` on a list of custom-type values whose branches contain a nested `case` on a String.
passpasspasspass
elm / LetBasicTest
Two groups of `let` bindings, where later bindings use earlier ones: `x + y` on two Int literals gives 5, and `"hello" ++ " " ++ "world"` gives `"hello world"`.
passpasspasspass
elm / LetBoundLambdaCallTest
A two-argument anonymous function bound in a `let` and then applied to two arguments: `(\x y -> x) 1 2` returns the first, 1.
passpasspasspass
elm / LetCycleThroughLambdaArgumentTest (must not compile)
A `let` definition without parameters that lies on a cycle is rejected, even when the cycle goes through a lambda: here a lambda passed as an argument to `Result.andThen`.
passpassfailfail
elm / LetCycleThroughRecordLambdaTest (must not compile)
A `let` definition without parameters that lies on a cycle is rejected, even when the cycle goes through a lambda: here a record whose field is a lambda that refers back to the record.
passpassfailpass
elm / LetDestructAliasTest
A `let` destructuring with an `as` pattern binds both the parts and the whole: from `((a, b)) as pair = (1, 2)`, `pair` is `(1,2)` and `a` is 1.
passpasspasspass
elm / LetDestructFuncTupleTest
A `let` destructures a pair of functions chosen by a `case`: a field accessor and a record-update lambda for the same field.
passpasspasspass
elm / LetDestructNestedSingleConstructorNumberTest
A `let` destructuring pattern through two nested single-constructor types reads a number literal that is then used as a Float.
passpasspasspass
elm / LetDestructRecordTest
Record patterns in `let` bindings: a single field, two fields, a subset of a record's fields (`{ p, r }` from a record that also has `q`), and a record pattern nested inside a tuple pattern.
passpasspasspass
elm / LetDestructTupleNestedTest
Tuple patterns in `let` bindings: a flat pair, a pair of pairs destructured in one pattern, and a pair whose second part is bound by name and destructured by a later binding.
passpasspasspass
elm / LetDestructuringTest
Tuple patterns in `let` bindings, for a pair and for a triple; the line labelled `head` logs the first element of the triple `(10, 20, 30)`.
passpasspasspass
elm / LetMultiFuncTest
Two named functions defined in one `let` and called from later bindings: a local `identity` returns its argument (1) and a local `const` returns the first of two (2).
passpasspasspass
elm / LetMultipleTest
Five Int bindings in one `let` combined by two later bindings: their sum (15) and their product (120).
passpasspasspass
elm / LetMutualRecursionBetweenLocalsTest
Two functions defined in the same `let` call each other.
passpasspasspass
elm / LetNestedTest
A `let` expression used as the definition of a binding in an outer `let`: the inner binding 10 is multiplied by 3, giving 30.
passpasspasspass
elm / LetNumberAndThenTest
An unannotated `let` binding `Just 30`, whose literal has the constrained type `number`, is used at `Float` inside `Maybe.andThen`: `round (30 * 1.5)` gives 45.
passpasspasspass
elm / LetNumberApplyToTest
An unannotated `let`-bound number literal reaches a Float multiplication only through a generic higher-order function: `round (applyTo (\x -> x * 1.5) n)` with `n = 30` gives 45.
passpasspasspass
elm / LetNumberAsPatternTest
A tuple of number literals matched with an `as` pattern, where one part and the whole tuple are both used.
passpasspasspass
elm / LetNumberBoxedSilentMiscompileTest
Number literals placed inside a container by an unannotated `let` binding, then taken out and used as Floats, give the correct Float results.
passpasspasspass
elm / LetNumberCaseLetTest
An unannotated number literal bound by a `let` inside a `case` branch, then used as a Float: `round (30 * 1.5)` gives 45.
passpasspasspass
elm / LetNumberCaseTuple3Test
A triple of number literals destructured by `case` twice, once summed as Ints and once as Floats.
passpasspasspass
elm / LetNumberClosureInRecordTest
An anonymous function that uses an unannotated `let`-bound number is stored in a record field and then called with a Float: `rec.f 1.5` computes `1.5 * 30`, logged rounded as 45.
passpasspasspass
elm / LetNumberContainerDualTest
One unannotated `let`-bound tuple of number literals is used both as Ints and as Floats.
passpasspasspass
elm / LetNumberCustomTriple3Test
A single-constructor type whose three fields share one type variable, built from number literals in an unannotated `let` and matched by `case` with every field used as a Float: `round 45 + round 60 + round 75` gives 180.
passpasspasspass
elm / LetNumberCustomTypeTest
A let-bound custom type value whose type parameter is `number`, built from an integer literal, has its payload extracted by `case` and multiplied by a `Float`.
passpasspasspass
elm / LetNumberDeepNestRecordTest
A `number` literal in a record that is itself a field of a let-bound record is read through two field accesses and used as a `Float`.
passpasspasspass
elm / LetNumberDestructureTest
Two `number` literals bound by a tuple pattern in a `let` are both used as `Float`s.
passpasspasspass
elm / LetNumberDualUseTest
An unannotated let-bound `number` value can be used as an `Int` and as a `Float` in the same expression, because Elm generalizes the type of a `let` binding and each use picks its own type.
passpasspasspass
elm / LetNumberFloatArithCrashTest
An unannotated let-bound `number` literal passed to `sqrt`, or combined with a `Float` by `(+)`, `(/)` or `(^)`, is a `Float`.
passpasspasspass
elm / LetNumberFoldrTest
A let-bound list of `number` literals is folded by `List.foldr` with a `Float` accumulator, which makes its elements `Float`s.
passpasspasspass
elm / LetNumberFracRecordTest
The two `number` fields of a let-bound record literal are typed independently, one used as an `Int` and the other as a `Float`.
passpasspasspass
elm / LetNumberIfBranchTest
A let-bound `number` passed through an `if` expression whose result is multiplied by a `Float` is a `Float`.
passpasspasspass
elm / LetNumberIndirectCaptureTest
A let-bound `number` captured by an anonymous function and multiplied by that function's `Float` argument is a `Float`.
passpasspasspass
elm / LetNumberIndirectDualTest
A let-bound `number` used once in a `Float` multiplication and once in an unconstrained addition takes a type at each use independently.
passpasspasspass
elm / LetNumberIndirectFoldlTest
A let-bound `number` used as the initial accumulator of `List.foldl (+)` over a list of `Float`s is a `Float`.
passpasspasspass
elm / LetNumberIndirectIdentityTest
A let-bound `number` passed through `identity` before a `Float` multiplication is a `Float`.
passpasspasspass
elm / LetNumberIndirectTopFnTest
A let-bound `number` passed to a top-level function annotated `Float -> Float` is a `Float`.
passpasspasspass
elm / LetNumberLetInLambdaTest
A `number` bound in a `let` inside a top-level function's body and multiplied by a `Float` is a `Float`.
passpasspasspass
elm / LetNumberListCaseTest
A `number` computed by a `case` over a let-bound list can be used both as an `Int` and as a `Float`, because Elm generalizes the type of a `let` binding.
passpasspasspass
elm / LetNumberListConsHeadTest
The head of a list of `number` literals, matched by a `::` pattern in a `case` and multiplied by a `Float`, is a `Float`.
passpasspasspass
elm / LetNumberListFixedTest
Both elements of a list of `number` literals, matched by the fixed-length list pattern `[ a, b ]` and multiplied by a `Float`, are `Float`s.
passpasspasspass
elm / LetNumberListOfClosuresTest
A let-bound `number` captured by two anonymous functions stored in a list, each applied to a `Float`, is a `Float`.
passpasspasspass
elm / LetNumberListOfMaybeTest
`number` literals inside `Just` values in a let-bound list, mapped with a `Float` multiplication, are `Float`s.
passpasspasspass
elm / LetNumberListOfRecordsTest
`number` fields of records in a let-bound list, mapped with a `Float` multiplication, are `Float`s.
passpasspasspass
elm / LetNumberLocalMap2Test
A list of integer literals combined with a list of `Float`s by a two-argument mapping function is used at `Float`: `[ 30, 40 ]` scaled by 1.5 and rounded logs `[45,60]`.
passpasspasspass
elm / LetNumberLogBaseTest
An unannotated let-bound integer literal, passed to `logBase`, is used as a `Float`: `round (logBase 10 n)` with `n = 100` logs 2.
passpasspasspass
elm / LetNumberMaybeCaseDirectTest
An integer literal inside `Just`, taken out by a `case` pattern and multiplied by `1.5`, is used as a `Float`: `round (n * 1.5)` with `n` bound from `Just 30` logs 45.
passpasspasspass
elm / LetNumberMaybeChainTest
An integer literal inside `Just`, run through two `Maybe.map` calls, is used as a `Float`: `Just 30` multiplied by `1.5`, divided by 3 and rounded logs 15.
passpasspasspass
elm / LetNumberMixedTupleSlotTest
Two integer literals in a three-element tuple whose middle element is a `String` are each used as a `Float`: matching `( 30, "x", 40 )` against `( a, _, c )` and adding `round (a * 1.5)` to `round (c * 1.5)` logs 105.
passpasspasspass
elm / LetNumberMulFnTest
An unannotated let-bound integer literal passed to a user function annotated `Float -> Float -> Float` is used as a `Float`: `round (mulF 1.5 n)` with `n = 30` logs 45.
passpasspasspass
elm / LetNumberNegateTest
An unannotated let-bound integer literal passed through `negate` twice and then to `sqrt` is used as a `Float`: `round (sqrt (negate (negate n)))` with `n = 144` logs 12.
passpasspasspass
elm / LetNumberNestedCustomTest
An integer literal nested two custom-type constructors deep is used as a `Float`: `Box (NumBox 30)`, matched by the pattern `Box (NumBox n)` and multiplied by `1.5`, logs 45.
passpasspasspass
elm / LetNumberNestedLetTest
An integer literal bound in one `let` and re-bound in a nested `let` is used as a `Float`: `n = 30`, then `m = n`, then `round (m * 1.5)` logs 45.
passpasspasspass
elm / LetNumberNestedTupleTest
Integer literals in the inner tuple of a nested tuple are used as `Float`s while the outer one stays an `Int`: matching `( ( 30, 40 ), 50 )` against `( ( a, b ), c )` and computing `round (a * 1.5) + round (b * 1.5) + c…
passpasspasspass
elm / LetNumberRecordDestructureTest
Integer-literal record fields bound by a let destructuring pattern are used as `Float`s: `{ lo, hi } = { lo = 30, hi = 40 }` followed by `round (lo * 1.5) + round (hi * 1.5)` logs 105.
passpasspasspass
elm / LetNumberRecordMultiFieldTest
Two integer-literal fields of one let-bound record, read as `r.lo` and `r.hi`, are each used as a `Float`: `round (r.lo * 1.5) + round (r.hi * 1.5)` with `r = { lo = 30, hi = 40 }` logs 105.
passpasspasspass
elm / LetNumberRecordToFnTest
An unannotated let-bound integer literal, placed in a record passed to a function that takes `{ v : Float }`, is used as a `Float`: `round (useFloat { v = base })` with `base = 30` logs 45.
passpasspasspass
elm / LetNumberResultMapTest
An integer literal inside `Ok`, mapped by `Result.map`, is used as a `Float`: `Result.map (\x -> round (x * 1.5)) (Ok 30)`, unwrapped by a `case`, logs 45.
passpasspasspass
elm / LetNumberScaleFnTest
A let-bound record of integer literals passed to a function that takes a record of `Float`s is used at `Float`: `round (scale 1.5 p)` with `p = { lo = 30, hi = 40 }` logs 105.
passpasspasspass
elm / LetNumberSumMapTest
A let-bound list of integer literals, mapped to `Float`s and summed, is used at `Float`: `round (List.sum (List.map (\x -> x * 1.5) [ 30, 40 ]))` logs 105.
passpasspasspass
elm / LetNumberTupleBothTest
Both integer-literal elements of a let-bound pair are used as `Float`s: `round (Tuple.first p * 1.5) + round (Tuple.second p * 1.5)` with `p = ( 30, 40 )` logs 105.
passpasspasspass
elm / LetNumberTupleRecordNestTest
An integer-literal record field and an integer-literal tuple element, from a record nested in a pair, are both used as `Float`s: matching `( { lo = 30 }, 40 )` against `( r, c )` and computing `round (r.lo * 1.5) + roun…
passpasspasspass
elm / LetNumberTupleSecondTest
The second integer-literal element of a let-bound pair, read with `Tuple.second`, is used as a `Float` while the first is never used: `round (Tuple.second p * 1.5)` with `p = ( 99, 30 )` logs 45.
passpasspasspass
elm / LetNumberTupleToFnTest
A let-bound pair of integer literals passed to a function that takes `( Float, Float )` is used at `Float`: `round (useTuple p)` with `p = ( 30, 40 )` logs 105.
passpasspasspass
elm / LetNumberUnionBranchTest
Integer literals carried by a constructor of a two-constructor custom type with a `number` type parameter are used as `Float`s: `Pair 30 40`, matched by `Pair a b` and computing `round (a * 1.5 + b * 2.5)`, logs 145.
passpasspasspass
elm / LetNumberWildcardSlotTest
The first and last integer literals of a three-element tuple are used as `Float`s while the middle one is matched by a wildcard: matching `( 30, 40, 50 )` against `( a, _, c )` and adding `round (a * 1.5)` to `round (c …
passpasspasspass
elm / LetRecClosureTest
A recursive function defined in a `let` block captures a parameter of the enclosing function and is used by an earlier binding of the same `let`.
passpasspasspass
elm / LetRecMultiArgTest
A recursive two-argument function defined in a `let` block calls itself with both arguments changed; `f 1 1` logs `result: 2`.
passpasspasspass
elm / LetSeparatedStagingTest
A function defined with fewer parameters than its annotated type returns, from different `case` branches, lambdas that take the remaining arguments in different groupings.
passpasspasspass
elm / LetValueBindingTest
A `let` binding `x = e` binds `x` to the value of `e`, evaluated once.
passpasspasspass
elm / ListConsCharTest
A `List Char` literal holds its characters in order, and `::` prepends a character to it.
passpasspasspass
elm / ListConsFloatTest
A `List Float` literal holds its numbers in order, and `::` prepends a number to it.
passpasspasspass
elm / ListConsIntTest
A `List Int` literal holds its numbers in order, and `::` prepends a number to it.
passpasspasspass
elm / ListConsTest
The cons operator `::` builds one-, two- and three-element lists onto `[]`.
passpasspasspass
elm / ListIndexedMapTest
Top-level definitions named `map2`, `range` and `length` take precedence over the same names exposed by `import List exposing (..)`.
passpasspasspass
elm / ListLiteralDebugLogKindTest
Values returned by `Debug.log` keep their value when used in a closure, a tuple, a function argument, a list literal and a `::` cons.
passpasspasspass
elm / ListLiteralTest
List literals of one, three and five Int elements log their elements in order.
passpasspasspass
elm / LocalMultiNonTailRecTest
A let-bound recursive function that is not tail recursive, with an unannotated polymorphic type, is used at both Int and Float in the same body.
passpasspasspass
elm / LocalRecCaptureBoolTest
A let-bound recursive function reads a Bool defined earlier in the same `let`, and the loop takes the step size that Bool selects.
passpasspasspass
elm / LocalRecCaptureKindsTest
A let-bound recursive function that uses an Int, a Float, a Char, a Bool and a String from its enclosing scope gives the same result whether it is called directly or passed to a local `map`.
passpasspasspass
elm / LocalRecCaptureSplitParamTest
A let-bound recursive function reads a tuple parameter of the tail-recursive function that encloses it.
passpasspasspass
elm / LocalTailRecSimpleTest
An annotated let-bound tail-recursive function with an accumulator computes the sum 1 + 2 + ... + 10 = 55.
passpasspasspass
elm / LssGapBodyTieAnnoAB
A top-level function that returns a lambda gives the same result whether or not it has a type annotation.
passpasspasspass
elm / LssGapCtorAsValue
A custom type constructor passed as a function argument builds the value it is applied to.
passpasspasspass
elm / LssGapCtorInList
A custom type constructor stored in a list can be taken out and applied.
passpasspasspass
elm / LssGapCtorScale
Constructors of arity one to four build values that pattern matches in function arguments take apart again.
passpasspasspass
elm / LssGapCustomTypeFn
A function stored in a custom type constructor can be pattern matched out and applied: `useBox (Box double) 7` prints 14.
passpasspasspass
elm / LssGapNoDecls
A program with no type declarations calls one annotated top-level function.
passpasspasspass
elm / LssGapRecordFnNoAlias
A function stored in a field of an unaliased record type is called through that field.
passpasspasspass
elm / LssGapTupleFn
A function stored in a tuple is taken out by destructuring and called.
passpasspasspass
elm / MaybeJustTest
`Just` wraps an Int, a String and a Bool, and `Debug.log` prints each as `Just <value>`.
passpasspasspass
elm / MaybeNothingTest
`Debug.log` prints a bare `Nothing` as `Nothing`.
passpasspasspass
elm / MaybePatternMatchTest
A `case` on a `Maybe` takes the `Just` branch to extract the value and the `Nothing` branch otherwise.
passpasspasspass
elm / MinimalAsPatternTest
A layered pattern binds the whole value to its variable.
passpasspasspass
elm / MinimalCaseNextRuleTest
A value the first rule of a case does not match goes to the next rule.
passpasspasspass
elm / MinimalCaseTest
A case expression with one rule whose pattern is a variable.
passpasspasspass
elm / MinimalCmdMapTest
A command mapped by a function gives the mapped message.
passpasspasspass
elm / MinimalConsPatternFailTest
A list construction pattern fails on the empty list.
passpasspasspass
elm / MinimalConsPatternTest
A list construction pattern matches a non-empty list.
passpasspasspass
elm / MinimalConstantPatternTest
A constant pattern matches the constant it spells.
passpasspasspass
elm / MinimalConstantTest
An integer constant is a value.
passpasspasspass
elm / MinimalConstructedPatternFailTest
A constructor pattern with an argument fails on another constructor.
passpasspasspass
elm / MinimalConstructedPatternTest
A constructor pattern with an argument matches and binds the argument.
passpasspasspass
elm / MinimalConstructorPatternFailTest
A constructor pattern without arguments fails on another constructor.
passpasspasspass
elm / MinimalConstructorPatternTest
A constructor pattern without arguments matches its constructor.
passpasspasspass
elm / MinimalCustomTypeTest
A custom type with one constructor.
passpasspasspass
elm / MinimalDestructuringTest
A let definition by a tuple pattern.
passpasspasspass
elm / MinimalEmptyListTest
The empty list is a value.
passpasspasspass
elm / MinimalExposingAliasTest
A module that exposes a record type alias.
passpasspasspass
elm / MinimalExposingAllTest
A module that exposes everything with `(..)`.
passpasspasspass
elm / MinimalExposingOpenTest
A module that exposes a custom type with its constructors.
passpasspasspass
elm / MinimalImportValueTest
A value exposed by one module and used in another.
passpasspasspass
elm / MinimalKillTest
A process kills a process it spawned.
passpasspasspass
elm / MinimalLetRecursionTest
A let definition of a function that calls itself.
passpasspasspass
elm / MinimalLetTest
A let expression with one definition.
passpasspasspass
elm / MinimalNilPatternFailTest
The empty-list pattern fails on a list with an element.
passpasspasspass
elm / MinimalNilPatternTest
The empty-list pattern matches the empty list.
passpasspasspass
elm / MinimalParenthesesTest
A parenthesised expression has the value of what it encloses.
passpasspasspass
elm / MinimalParenthesisedPatternTest
A parenthesised pattern matches as the pattern it encloses.
passpasspasspass
elm / MinimalParenthesisedTypeTest
An annotation with a parenthesised type.
passpasspasspass
elm / MinimalPipeArrayTest
A pipe at `Array Int`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeFalseTest
A pipe at `Bool`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeFloatTest
A pipe at `Float`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeIntTest
A pipe at `Int`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeJustTest
A pipe at `Maybe Int`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeListTest
A pipe at `List Int`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeNothingTest
A pipe at `Maybe Int`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeRecordTest
A pipe at `{ a : Int }`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeStringTest
A pipe at `String`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeTrueTest
A pipe at `Bool`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeTupleTest
A pipe at `( Int, Int )`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeUnitTest
A pipe at `()`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPipeValueTest
A pipe at `Value`: the value the driver sends in comes back out.
passpasspasspass
elm / MinimalPortSubscriptionTest
A value sent in on a port reaches update as the subscription's message.
passpasspasspass
elm / MinimalRecordAliasConstructorTest
A record type alias declares a constructor.
passpasspasspass
elm / MinimalRecordPatternTest
A record pattern binds the field it names.
passpasspasspass
elm / MinimalRecordTest
A record expression with one field.
passpasspasspass
elm / MinimalRecordTypeTest
An annotation with a record type of one field.
passpasspasspass
elm / MinimalRecordUpdateTest
A record update replaces the value of one field.
passpasspasspass
elm / MinimalRowVariableTest
An annotation with an extensible record type.
passpasspasspass
elm / MinimalSleepTest
A process sleeps, and time passes.
passpasspasspass
elm / MinimalSpawnTest
A spawned process runs, and ends when its task succeeds.
passpasspasspass
elm / MinimalTaskAndThenFailTest
A task chained after a task that fails fails with the same error.
passpasspasspass
elm / MinimalTaskAndThenInnerTest
A chained task whose first task takes steps of its own.
passpasspasspass
elm / MinimalTaskAndThenTest
A task chained after a task that succeeds.
passpasspasspass
elm / MinimalTaskOnErrorInnerTest
A handled task whose task takes steps of its own.
passpasspasspass
elm / MinimalTaskOnErrorSucceedTest
An error handler is not used when the task succeeds.
passpasspasspass
elm / MinimalTaskOnErrorTest
An error handler replaces a task that fails.
passpasspasspass
elm / MinimalTaskPerformTest
The message of a performed task reaches update.
passpasspasspass
elm / MinimalTuplePatternTest
A tuple pattern matches the components of a pair.
passpasspasspass
elm / MinimalTypeAliasTest
A type alias of a type name.
passpasspasspass
elm / MinimalTypeVariableTest
An annotation with a type variable.
passpasspasspass
elm / MinimalUnitPatternTest
The unit pattern matches the unit value.
passpasspasspass
elm / MinimalUnitTest
The unit expression has the unit type and value.
passpasspasspass
elm / MinimalVariableTest
A top-level variable denotes the value of its definition.
passpasspasspass
elm / MissingPatternsAMissingListLengthTest (must not compile)elm19-compile-error
A `case` on a list that covers only the empty and one-element lists is rejected with a MISSING PATTERNS error.
passpasspasspass
elm / MissingPatternsAMissingTupleShapeTest (must not compile)elm19-compile-error
A `case` on a pair of `Bool`s with no branch for `( False, False )` is rejected with a MISSING PATTERNS error.
passpasspasspass
elm / ModuleHeaderMissingImportedTest (must not compile)
A module that imports a file with no `module` line is rejected.
passpasspasspass
elm / MultiLocalTailRecTest
Two independent self-recursive functions defined in the same `let` block, each calling itself in tail position, both run correctly.
passpasspasspass
elm / MutualLetRecClosuresTest
Two `let`-bound functions that call each other (`evenP` and `oddP`) are mutually recursive, and each returns a record holding a Bool result and a step count.
passpasspasspass
elm / MutualLetRecManyCapturesTest
Two mutually recursive `let`-bound functions inside a top-level function, both using all four of the enclosing function's parameters, compute the right result.
passpasspasspass
elm / MutualLetRecNestedTest
Two mutually recursive `let`-bound functions defined inside a lambda that is returned from a top-level function use that function's parameters after it has returned.
passpasspasspass
elm / MutualRecursionTest
Two top-level functions that call each other, `isEven` and `isOdd`, decide parity by counting down to zero.
passpasspasspass
elm / MutualRecursionThreeWayTest
Three top-level functions that call each other in a cycle (`funcA` calls `funcB`, `funcB` calls `funcC`, `funcC` calls `funcA`) recurse correctly.
passpasspasspass
elm / NameClashARecordFieldGivenTwiceTest (must not compile)elm19-compile-error
A record literal that gives the same field twice, `{ a = 1, a = 2 }`, is rejected with a NAME CLASH error.
passpasspasspass
elm / NameClashTwoArgumentsOfOneNameTest (must not compile)elm19-compile-error
A function whose two arguments share one name, `pick a a`, is rejected with a NAME CLASH error.
passpasspasspass
elm / NameClashTwoLetBindingsOfOneNameTest (must not compile)elm19-compile-error
A `let` block that defines `y` twice is rejected with a NAME CLASH error.
passpasspasspass
elm / NamingErrorAnUnknownVariableTest (must not compile)elm19-compile-error
A reference to a variable that is defined nowhere, `undefinedName`, is rejected with a NAMING ERROR.
passpasspasspass
elm / NestedCaseReturnTest
A `case` on a custom type whose branches return the result of another `case` on a String, either inline or through a helper, returns the right string.
passpasspasspass
elm / NoImportsTest
A module with no imports elaborates and runs, with the default imports only.
passpasspasspass
elm / NonAsciiIdentifierTest
A top-level value whose name contains a non-ASCII letter, `cafΓ©`, is read as one identifier and can be referenced; the program logs its value, 7.
passpasspasspass
elm / NonZeroArityRecursionTest
A self-recursive top-level function, `countDown : Int -> Int`, calls itself in tail position from 100 down to 0 and returns 0; the program logs `countDown: 0`.
passpasspasspass
elm / NumberDestructFieldTest
Number literals stored in a constructor's tuple, list, record or `Maybe` field, then destructured in a `let` with a constructor pattern, take the type `Float` from how they are later used.
passpasspasspass
elm / NumberGenericAppCustom
A number literal passed through a generic function, here `unbox : Box a -> a` applied to `Box 30`, keeps the type `number`, so the `let`-bound result can be used in `Float` arithmetic: `round (1.5 * n)` logs 45.
passpasspasspass
elm / NumberGenericAppList
A number literal passed through a generic function, here `List.head` followed by `Maybe.withDefault 0`, keeps the type `number`, so the `let`-bound result can be used in `Float` arithmetic: `round (1.5 * n)` logs 45.
passpasspasspass
elm / NumberGenericAppMaybe
A number literal passed through a generic function, here `Maybe.withDefault 0` applied to `Just 30`, keeps the type `number`, so the `let`-bound result can be used in `Float` arithmetic: `round (1.5 * n)` logs 45.
passpasspasspass
elm / NumberGenericAppTuple
A number literal passed through a generic function, here `Tuple.first` applied to `( 30, "x" )`, keeps the type `number`, so the `let`-bound result can be used in `Float` arithmetic: `round (1.5 * n)` logs 45.
passpasspasspass
elm / OutgoingPortTuple3KeepsRunningTest
A program that sends a 3-tuple through an outgoing port keeps running afterwards.
passpasspasspass
elm / OutgoingPortTuple3Test
Tests that a program with an outgoing port whose payload is a 3-tuple `( String, String, List String )` compiles and runs.
passpasspasspass
elm / PapEtaCtorProbe
Tests point-free top-level functions defined by partially applying a two-argument function, stored in a constructor, pattern-matched back out and applied.
passpasspasspass
elm / ParenthesesTest
Parentheses around an expression, a pattern or a type change nothing but the grouping.
passpasspasspass
elm / ParseErrorCasePatternUnfinishedTest (must not compile)elm19-bug-fix
A case pattern with an unclosed parenthesis, `(1 ->`, is reported as UNFINISHED PARENTHESES.
failpasspasspass
elm / ParseErrorNumberBadHexDigitTest (must not compile)elm19-compile-error
A hexadecimal literal containing a non-hex digit, `0x1g`, is rejected with a WEIRD HEXIDECIMAL syntax error.
passpasspasspass
elm / ParseErrorNumberFractionThenLetterTest (must not compile)elm19-compile-error
A float literal followed directly by a letter, `1.5a`, is rejected with a WEIRD NUMBER syntax error.
passpasspasspass
elm / ParseErrorStringEscapeTooFewDigitsTest (must not compile)elm19-compile-error
A Unicode escape in a string with only two hex digits, `"\u{41}"`, is rejected with a BAD UNICODE ESCAPE syntax error.
passpasspasspass
elm / ParseErrorStringEscapeUnclosedTest (must not compile)elm19-compile-error
A Unicode escape in a string with no closing brace, `"\u{12"`, is rejected with a BAD UNICODE ESCAPE syntax error.
passpasspasspass
elm / PartialAppCaptureTypesTest
Tests partial applications that hold a bound `Float`, `Char`, `Bool` or `String` argument and return it when later given the remaining arguments.
passpasspasspass
elm / PartialAppChainTest
Tests a three-argument function partially applied one argument at a time, `addThree 3`, then `4`, then `3`, against a direct full call.
passpasspasspass
elm / PartialApplicationTest
Tests partial application of two-argument functions, both called directly and passed to a local `map`.
passpasspasspass
elm / PhantomTypeVarTest
Tests a custom type with a type parameter that one of its constructors does not use, rebuilt at a new type by generic functions.
passpasspasspass
elm / PolyApplyLambdaTest
Tests a polymorphic `apply f x = f x` called with an `Int` function, a `String` function and an anonymous lambda.
passpasspasspass
elm / PolyChainCallTest
Tests a polymorphic function that calls another polymorphic function twice, building a binary tree of two nodes that is then counted.
passpasspasspass
elm / PolyChainDictLikeInsertChained5TimesWithTupleKeysConcreteCallerTest
Tests a polymorphic `insert` on a list-like dictionary type, called five times in a chain from a function with concrete `( String, Int )` keys and `Int` values.
passpasspasspass
elm / PolyChainFoldlLikeCalled8TimesOverTupleKeyedStructureTest
Tests a polymorphic fold-like function called eight times in a chain, each with a step function over `( List String, Global )` elements and the previous call's result as the initial value.
passpasspasspass
elm / PolyEscapePolymorphicFunctionExtractedFromTupleTest
A function stored in a tuple and taken out again by a let-bound pattern-matching helper can be applied: `first ( id, 0 ) 42` evaluates to 42.
passpasspasspass
elm / PolyEscapeRecordTest
A record field holding a polymorphic identity function can be called, and a record update that replaces it with an increment function gives a record whose field calls the new function.
passpasspasspass
elm / PolyLetConstTest
A let-bound polymorphic `const` is used at two different type combinations in the same scope, and each use returns its first argument.
passpasspasspass
elm / PolyLetTailRecTwoTypesTest
A let-bound, polymorphic, tail-recursive local `foldl` used at two different types in the same expression gives the right result for each.
passpasspasspass
elm / PolySpecializeRecursiveTest
Annotated polymorphic recursive functions, `myLength` and `myMap`, give the right results when called at both `Int` and `String` element types.
passpasspasspass
elm / PolyStepLoopFloatResultTest
A polymorphic state-threading loop, driven by a `Step state a` custom type, returns a `Float` result and the threaded state correctly.
passpasspasspass
elm / PolyStepLoopFoldMIntTest
A monadic fold, `foldM`, built on a polymorphic `Step`-driven state loop, sums a list of `Int`s and threads its state correctly.
passpasspasspass
elm / PolyTailRecReverseTest
An unannotated, polymorphic, tail-recursive list reverse gives the right result at both `Int` and `String` element types.
passpasspasspass
elm / PortAliasEchoTest
An outgoing port whose type is written through a type alias, `port echoOut : Out msg` with `type alias Out msg = Payload -> Cmd msg`, sends its record payload, and the record comes back unchanged through an incoming por…
passpasspasspass
elm / PortEchoArrayStringFlagsTest
An `Array String` sent out through a port comes back unchanged through an incoming port, for each of two sample values received as flags.
passpasspasspass
elm / PortEchoBoolTest
A `Bool` sent out through a port comes back unchanged through an incoming port, for each of two sample values.
passpasspasspass
elm / PortEchoFloatTest
A `Float` sent out through a port comes back unchanged through an incoming port, for each of seven sample values.
passpasspasspass
elm / PortEchoJsonValueTest
JSON `Value`s received as flags are sent out through a port as they are, and come back through an incoming port decoded at a concrete type.
passpasspasspass
elm / PortEchoListIntTest
A `List Int` sent out through a port comes back unchanged through an incoming port, for each of three sample values.
passpasspasspass
elm / PortEchoMaybeIntTest
A `Maybe Int` sent out through a port comes back unchanged through an incoming port, for each of three sample values.
passpasspasspass
elm / PortEchoNestedTest
A `List (Maybe ( Int, List String ))` sent out through a port comes back unchanged through an incoming port, for each of two sample values.
passpasspasspass
elm / PortEchoStringTest
A `String` sent out through a port comes back unchanged through an incoming port, for each of six sample values.
passpasspasspass
elm / PortEchoTest
An `Int` sent out through an outgoing port comes back unchanged through an incoming port.
passpasspasspass
elm / PortEchoTuple2Test
A `( Int, String )` sent out through an outgoing port comes back unchanged through an incoming port.
passpasspasspass
elm / PortEchoTuple3Test
A `( Int, Float, Bool )` sent out through an outgoing port comes back unchanged through an incoming port.
passpasspasspass
elm / PortEchoUnitTest
A `()` sent out through an outgoing port comes back unchanged through an incoming port.
passpasspasspass
elm / PortEncodingDecodeFloatTest
A port module declaring an incoming port that carries `Float` compiles and runs.
passpasspasspass
elm / PortEncodingDecodeListIntTest
A port module declaring an incoming port that carries `List Int` compiles and runs.
passpasspasspass
elm / PortEncodingDecodeMaybeIntTest
A port module declaring an incoming port that carries `Maybe Int` compiles and runs.
passpasspasspass
elm / PortEncodingDecodeTuple2Test
A port module declaring an incoming port that carries `( Int, String )` compiles and runs.
passpasspasspass
elm / PortEncodingEncodeBoolTest
A port module declaring an outgoing port that carries `Bool` compiles and runs.
passpasspasspass
elm / PortEncodingEncodeFloatTest
A port module declaring an outgoing port that carries `Float` compiles and runs.
passpasspasspass
elm / PortEncodingEncodeMaybeRecordTest
A port module declaring an outgoing port that carries `Maybe { x : Int }` compiles and runs.
passpasspasspass
elm / PortEncodingEncodeTuple2Test
A port module declaring an outgoing port that carries `( Int, String )` compiles and runs.
passpasspasspass
elm / PortEncodingPortWithArrayTest
A port module declaring an outgoing port that carries `Array Int` compiles and runs.
passpasspasspass
elm / PortIncomingRejectTestelm19-bug
A value that does not decode at an incoming port's type is rejected, and the program goes on.
failfailfailfail
elm / PortPipeBytesRejectTestelm19-bug
A JSON value sent to a `Bytes` port is rejected, whatever it holds.
failfailfailfail
elm / PortPipeBytesTestelm19-bug
A byte sequence received at `Bytes` goes out again as the same byte sequence.
failfailfailfail
elm / PortPipeListArrayTest
JSON arrays received at `List` and `Array` types go out as the same arrays.
passpasspasspass
elm / PortPipeMaybeTest
JSON `null` and other values received at `Maybe` types go out as they came.
passpasspasspass
elm / PortPipeRecordTest
A JSON object received at a record type goes out with exactly the record's fields.
passpasspasspass
elm / PortPipeRejectTest
Values that do not decode at an incoming port's type are rejected, and the program goes on.
passpasspasspass
elm / PortPipeScalarsTest
JSON numbers, Booleans, strings and `null` received at `Float`, `Int`, `Bool`, `String` and `()` go out as they came.
passpasspasspass
elm / PortPipeTupleTest
A JSON array received at a tuple type goes out with as many elements as the tuple has.
passpasspasspass
elm / PortPipeValueRejectsBytesTestXFAIL
A byte sequence sent to a `Json.Encode.Value` port is rejected, alone or inside an object.
failfailfailfail
elm / PortPipeValueTest
A JSON value received at `Json.Encode.Value` goes out again as the same JSON value.
passpasspasspass
elm / PortProblemCharPayloadTest (must not compile)elm19-compile-error
A port whose payload type is `Char` is rejected with a PORT ERROR naming the port and the `Char` type.
passpasspasspass
elm / PortProblemDeclarationWithoutNameTest (must not compile)elm19-compile-error
A `port` keyword at the end of a module with no name or type after it is rejected with a PORT PROBLEM syntax error.
passpasspasspass
elm / PureMutualRecursiveValueTest
Two top-level values that refer to each other through lambdas can be defined and used.
passpasspasspass
elm / PureRecursiveValueThunkTest
A top-level value that refers to itself inside a lambda can be defined and used.
passpasspasspass
elm / QualifiedTypeNotExposedTest (must not compile)
A qualified type that its module does not expose is not a type: `List.Bar` is rejected.
passpasspasspass
elm / RecordAccessTest
Dot syntax reads fields of let-bound record literals.
passpasspasspass
elm / RecordAccessorFunctionCaseTest
A record accessor function `.x` stored in a top-level value can be applied to a record.
passpasspasspass
elm / RecordAccessorFunctionTest
Record accessor functions such as `.name` work as arguments to a function.
passpasspasspass
elm / RecordChainedUpdateTest
A record update can set several fields at once, and updates can be chained through let bindings.
passpasspasspass
elm / RecordChainedUpdatesTest
A record updated twice in a row, one field per update, keeps both changes.
passpasspasspass
elm / RecordCreateTest
Record literals with `Int` and `String` fields print correctly through `Debug.log`.
passpasspasspass
elm / RecordNarrow01CapturesNonEmptyTest
A let-bound helper with an inferred extensible-record argument, folded over two records with `List.foldl`, reads the right nested field when its `captures` field is a non-empty list.
passpasspasspass
elm / RecordNarrow02CapturesNothingTest
A let-bound helper with an inferred extensible-record argument, folded over two records with `List.foldl`, reads the right nested field when its `captures` field is `Nothing`.
passpasspasspass
elm / RecordNarrow03FullAnnotationTest
A let-bound helper annotated with concrete record aliases, folded over two nested records with `List.foldl`, reads the right nested field.
passpasspasspass
elm / RecordNarrow04SingleFieldTest
A let-bound helper that reads a single field of a nested five-field record, folded with `List.foldl`, gets that field's value.
passpasspasspass
elm / RecordNarrow05NoNestingTest
A let-bound helper with an inferred extensible-record argument, folded with `List.foldl`, reads the right field of a record that is not nested in another.
passpasspasspass
elm / RecordNarrow06RowPolyAnnotationTest
A let-bound helper annotated with a nested extensible record type, folded with `List.foldl`, reads the right nested field.
passpasspasspass
elm / RecordNarrow08NoDestructureTest
A let-bound helper with an inferred extensible-record argument, folded with `List.foldl`, logs a nested custom-type field as `LambdaId 999`.
passpasspasspass
elm / RecordNarrow09DirectCallTest
A let-bound helper with an inferred extensible-record argument reads the right nested field when called directly.
passpasspasspass
elm / RecordNarrow10TripleNestingTest
A let-bound helper with an inferred extensible-record argument, folded with `List.foldl`, reads a field three records deep.
passpasspasspass
elm / RecordNestedAccessTest
Chained field access reads through nested record literals two and three levels deep.
passpasspasspass
elm / RecordOpenNarrowFieldIndexTest
A let-bound helper with an inferred extensible-record argument, folded over two nested records with `List.foldl`, reads the right nested field.
passpasspasspass
elm / RecordRowsTest
Record expressions, record types and record patterns are rows of fields.
passpasspasspass
elm / RecordUpdateNoFieldsTest (must not compile)
A record update with no fields, `{ r | }`, is rejected.
passpasspasspass
elm / RecordUpdatePolyFieldTest
Updating a function-typed field of a let-bound record whose function is polymorphic gives a record whose new function works.
passpasspasspass
elm / RecordUpdateTest
Record update syntax produces a new record with one field changed and leaves the original unchanged.
passpasspasspass
elm / RecordWithFunctionsTest
Functions stored in record fields can be called, composed and replaced with record update.
passpasspasspass
elm / RecursiveFactorialTest
A self-recursive top-level `factorial` returns 1 for 0 and 120 and 3628800 for 5 and 10.
passpasspasspass
elm / RecursiveFibonacciTest
A top-level `fib` that calls itself twice per step returns 0, 1 and 55 for 0, 1 and 10.
passpasspasspass
elm / RecursiveListLengthTest
A self-recursive function that pattern matches on `[]` and `_ :: rest` counts the elements of lists of length 0, 3 and 5.
passpasspasspass
elm / RecursiveMutualTypeTest
A pair of mutually recursive custom types, `Forest` and `RoseTree`, can be built and traversed.
passpasspasspass
elm / RecursiveTopLevelLambdaTest
A top-level value defined as a lambda that refers to itself can be called recursively.
passpasspasspass
elm / RecursiveTreeTest
A recursive binary tree type can be summed and measured with recursive functions.
passpasspasspass
elm / RecursiveTypeInRecordTest
Checks that a custom type can recurse through a record carried by one of its constructors.
passpasspasspass
elm / RedundantPatternABranchAfterAWildcardTest (must not compile)elm19-compile-error
A `case` branch placed after a wildcard branch is rejected with a REDUNDANT PATTERN error.
passpasspasspass
elm / ResultErrTest
Checks that `Err` builds a `Result` around a `String` and around an `Int`, and that `Debug.log` prints them as `Err "failed"` and `Err 404`.
passpasspasspass
elm / ResultOkTest
Checks that `Ok` builds a `Result` around an `Int` and around a `String`, and that `Debug.log` prints them as `Ok 42` and `Ok "success"`.
passpasspasspass
elm / RowVariableAloneTest
A record type's extension variable, written alone, is the record of the other fields.
passpasspasspass
elm / ShadowingAnArgumentShadowingATopLevelValueTest (must not compile)elm19-compile-error
A function argument with the same name as a top-level value is rejected with a SHADOWING error.
passpasspasspass
elm / ShadowingShadowingInLambdaTest (must not compile)elm19-compile-error
A lambda argument with the same name as an argument of the enclosing function is rejected with a SHADOWING error.
passpasspasspass
elm / SingleCtorPairBoolCharTest
Pattern matching works on two single-constructor types in one module, one wrapping a `Bool` and one wrapping a `Char`.
passpasspasspass
elm / SingleCtorPairBoolFloatTest
Pattern matching works on two single-constructor types in one module, one wrapping a `Bool` and one wrapping a `Float`.
passpasspasspass
elm / SingleCtorPairBoolIntBidiTest
Pattern matching and value extraction both work on two single-constructor types in one module, one wrapping a `Bool` and one wrapping an `Int`.
passpasspasspass
elm / SingleCtorPairCharFloatTest
Values are extracted correctly from two single-constructor types in one module, one wrapping a `Char` and one wrapping a `Float`.
passpasspasspass
elm / SingleCtorPairCharIntTest
Values are extracted correctly from two single-constructor types in one module, one wrapping a `Char` and one wrapping an `Int`.
passpasspasspass
elm / SingleCtorPairFloatBoolTest
Pattern matching works on two single-constructor types in one module, one wrapping a `Float` and one wrapping a `Bool`.
passpasspasspass
elm / SingleCtorPairIntFloatTest
Values are extracted correctly from two single-constructor types in one module, one wrapping an `Int` and one wrapping a `Float`.
passpasspasspass
elm / SingleCtorPairStringBoolTest
Pattern matching works on two single-constructor types in one module, one wrapping a `String` and one wrapping a `Bool`.
passpasspasspass
elm / SingleCtorPairStringIntTest
Values are extracted correctly from two single-constructor types in one module, one wrapping a `String` and one wrapping an `Int`.
passpasspasspass
elm / SingleCtorPairUnitIntTest
Pattern matching works on two single-constructor types in one module, one wrapping the unit value `()` and one wrapping an `Int`.
passpasspasspass
elm / StandardA1UnitPatternGapTest (must not compile)elm19-bug
The unit pattern is `()`, with nothing between the parentheses.
failfailfailfail
elm / StandardA56PrefixAndOrTestelm19-bug
`(&&)` and `(||)` used as functions evaluate both arguments, like every other function.
failfailfailfail
elm / StandardA72AbsentFlagsTestelm19-bug
A program given no flags starts with flags `null`: `Maybe` flags are `Nothing`.
failfailfailfail
elm / StandardA82MainInImportedModuleTestelm19-bug
A `main` in a module other than the main module is an ordinary value, of any type.
failfailfailfail
elm / StandardA84DuplicatePortNameTest (must not compile)elm19-bug
Two ports of one program may not have the same name.
failfailfailfail
elm / StandardA88PortNegativeZeroTestelm19-bug
`-0` sent out through a port arrives as `+0`.
failfailfailfail
elm / StandardA88PortNonFiniteTestelm19-bug
A NaN or an infinity sent out through a port arrives as JSON `null`.
failfailfailfail
elm / StandardA8SurrogateEscapeTest (must not compile)elm19-bug
`\u{D800}` is not an escape sequence: a surrogate code point is not a character.
failfailfailfail
elm / StandardA91BasicsAliasTest (must not compile)elm19-bug
Only an import of the module Basics may provide the qualifier `Basics`.
failfailfailfail
elm / StandardA92BytesPortDeclarationTestelm19-bug
A port module may declare an outgoing and an incoming port whose payload type is `Bytes`.
failfailfailpass
elm / StandardA93MutualNumberDefaultTest
A `number` variable of a recursive group that one binding's type does not mention is Float at a use of that binding.
passpasspasspass
elm / StandardA96NumberFlagsTest (must not compile)elm19-compile-error
A `main` whose flags type is a `number` variable is refused.
passpasspasspass
elm / StandardA97MaybeNeverMissingJustTest (must not compile)elm19-compile-error
A `case` on a `Maybe Never` must have a branch for `Just`.
passpasspasspass
elm / StandardA97NeverErrBranchTest
A branch for the error of a `Result Never a` is not redundant.
passpasspasspass
elm / StandardA97SelfOnlyTypeTest
Matches on a type whose one constructor takes the type itself.
passpasspasspass
elm / StandardA98TypeBeforeAliasStringMismatchTest (must not compile)elm19-compile-error
A custom type declared before a local alias spelt like an imported type uses the local alias.
passpasspasspass
elm / StandardA98TypeBeforeAliasTest
A custom type may mention a local alias declared after it, even one spelt like an imported type.
passpasspasspass
elm / StandardA99RecordPatternAsTest
A record pattern under `as` in a `let` binding.
passpasspasspass
elm / StandardA99RecordPatternBothTest
A variable bound by a record pattern in a `let`, used at Int and at Float.
passpasspasspass
elm / StandardA99RecordPatternDependentTest
A `let` definition that uses a variable bound by a record pattern.
passpasspasspass
elm / StandardA99RecordPatternFloatTest
A variable bound by a record pattern in a `let`, used at Float.
passpasspasspass
elm / StandardA99RecordPatternFunctionTest
A function bound by a record pattern in a `let`, applied at Int and at Float.
passpasspasspass
elm / StandardA99RecordPatternInTopCopyTest
A record pattern in a `let` inside a top-level value that is itself copied.
passpasspasspass
elm / StandardA99RecordPatternInTupleTest
A record pattern inside the tuple pattern of a `let` binding.
passpasspasspass
elm / StandardA99RecordPatternIntTest
A variable bound by a record pattern in a `let`, used at Int.
passpasspasspass
elm / StandardA99RecordPatternLambdaTest
A record pattern in a lambda inside a `let` binding that is copied.
passpasspasspass
elm / StandardA99RecordPatternRowPunRejectedTest (must not compile)elm19-compile-error
A record pattern row written `lab = var`, with the variable spelt as the label, is rejected.
passpasspasspass
elm / StandardA99RecordPatternRowRenameRejectedTest (must not compile)elm19-compile-error
A record pattern row written `lab = var` is rejected.
passpasspasspass
elm / StandardA99RecordPatternSharedVariableTest
Two variables of one record pattern that share one `number` type.
passpasspasspass
elm / StandardA99RecordPatternTwoVariablesTest
Two variables of one record pattern, with independent `number` types, used at opposite types.
passpasspasspass
elm / StandardApplicationStrictTest
A function's argument is evaluated before the function is applied, even when the function does not use it: `(\_ -> 1) (Debug.todo "x")` has no value, so the program stops there.
passpasspasspass
elm / StandardCoreEvaluationExamplesTest
Small programs for rules of the dynamic semantics of the Core that other tests reach only in passing, and examples from the Comments of A Standard Definition of Elm?, Chapter 6.
passpasspasspass
elm / StandardLetStrictTest
A `let` evaluates its declarations before its body, even a declaration whose value is not used: `let _ = Debug.todo "x" in 1` has no value, so the program stops there.
passpasspasspass
elm / StringCasePatternCommaTest
Two `case` expressions on Strings, one of whose patterns contains a comma, each match against their own patterns.
passpasspasspass
elm / StringCreationMatrixTest
The same string produced in different ways is `==`, and matches the same string pattern in a `case`.
passpasspasspass
elm / StringEscapeCrTest
The `\r` escape in a string literal is a carriage return, code point 13.
passpasspasspass
elm / StringEscapesTest
String literals containing the escape sequences `\n`, `\t` and `\"` compile, and `Debug.log` prints the string containing an escaped double quote as `"\""`.
passpasspasspass
elm / StringLiteralTest
Plain ASCII string literals, including ones with a comma, a space and digits, are printed unchanged by `Debug.log`.
passpasspasspass
elm / StringMagicPrefixTest
String literals whose contents look like internal marker text, such as `"__mlir_unknown_loc__"`, `"__mlir_loc__:foo:1:2"` and `"loc:unknown"`, are ordinary strings and are printed exactly as written.
passpasspasspass
elm / TailLoopMutualRecMutualRecursionInsideATailLoopTest
A self tail-recursive function whose loop body defines a pair of mutually recursive local functions, and calls one of them to compute the next accumulator, gives the right result.
passpasspasspass
elm / TailRecBoolCarryTest
A self tail-recursive function that carries a `Bool` argument from one call to the next, and sets it from a branch inside a `case`, returns the right result.
passpasspasspass
elm / TailRecCaseDestructTest
Self tail-recursive functions whose tail calls sit in a `case` branch that destructures a list with `x :: xs` give the right results.
passpasspasspass
elm / TailRecCaseMultiBranchTypesTest
A self tail-recursive search whose outer `case` has one branch per constructor of a custom type at the head of a list, with a nested `case` on a `String` inside one branch, finds the right element.
passpasspasspass
elm / TailRecClosureAccTest
A tail-recursive accumulator loop defined as a local function in a `let` gives the right result: `go` adds `m` to `acc` while counting `m` down to 0, so `recursiveLet 5` is 5 + 4 + 3 + 2 + 1 = 15.
passpasspasspass
elm / TailRecCustomCaseTest
A self tail-recursive function that matches on a user-defined list type and destructures its `Cons` constructor gives the right result: summing `Cons 1 (Cons 2 (Cons 3 (Cons 4 Nil)))` is 10.
passpasspasspass
elm / TailRecDeciderSearchTest
A local function defined in a `let` that calls itself both in a tail position and in a non-tail position, as the scrutinee of a `case`, gives the right result.
passpasspasspass
elm / TailRecDecoderLoopTest
A recursive function whose outer `case` is on a custom type and whose inner `case` is on a `String` returns the right result for each branch.
passpasspasspass
elm / TailRecFoldlCaseTest
A hand-written left fold, defined as a self tail-recursive local function in `main`'s `let` and matching on the list with `case`, sums `[ 1, 2, 3 ]` to 6.
passpasspasspass
elm / TailRecManyBranchStringTest
A self-recursive function over a three-constructor custom type, with a tail call in one branch and a `case` in another that matches a `String` against literal patterns, returns the right string.
passpasspasspass
elm / TailRecMultiCaseWhileTest
A tail-recursive fold over a list of custom-type values, with a `case` on string literals nested inside one list pattern and tail calls in every branch, accumulates the right pair of totals.
passpasspasspass
elm / TailRecNestedCaseTest
Self-recursive list functions whose tail call sits in an `if` branch or behind a `case` with several list patterns return the right results.
passpasspasspass
elm / TailRecNestedStringCaseTest
A self-recursive function whose non-recursive branch matches a `String` against literal patterns returns the matched value after unwrapping several layers.
passpasspasspass
elm / TailRecTypeTraversalTest
A function over a small type-expression tree, tail-recursive through its alias constructor and matching primitive type names as string literals, resolves an alias chain to the right name.
passpasspasspass
elm / TailRecursiveSumTest
A tail-recursive accumulator function sums the integers from 1 to n correctly for n = 5, 10 and 100.
passpasspasspass
elm / TooFewArgsAConstructorPatternWithTooFewArgumentsTest (must not compile)elm19-compile-error
A constructor pattern with fewer arguments than the constructor takes is rejected with a TOO FEW ARGS error.
passpasspasspass
elm / TooManyArgsAConstructorPatternWithTooManyArgumentsTest (must not compile)elm19-compile-error
A constructor pattern with more arguments than the constructor takes is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAConstructorTest (must not compile)elm19-compile-error
Applying a constructor to more arguments than it takes, `Just 1 2`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAFunctionTest (must not compile)elm19-compile-error
Applying a function to more arguments than it takes, `not True False`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALambdaTest (must not compile)elm19-compile-error
Applying a one-argument lambda to two arguments, `(\a -> a + 1) 1 2`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALiteralTest (must not compile)elm19-compile-error
An integer literal applied to an argument is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALocalTest (must not compile)elm19-compile-error
A top-level `Int` value applied to an argument is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToANullaryConstructorTest (must not compile)elm19-compile-error
A constructor with no arguments applied to one is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAnOperatorTest (must not compile)elm19-compile-error
An operator function given three arguments is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TopLevelConstructorTwiceTest (must not compile)
Two custom types may not declare the same constructor.
passpasspasspass
elm / TopLevelNameReplacesImportTest
A name a module declares replaces, within it, an imported name spelt alike.
passpasspasspass
elm / TopLevelPatternBindingTest (must not compile)
There is no pattern binding at the top level.
passpasspasspass
elm / TopLevelPortAndValueSameNameTest (must not compile)
A port and a top-level value may not have the same name.
passpasspasspass
elm / TopLevelRecordAliasConstructorClashTest (must not compile)
A record alias declares a constructor, which may not clash with a custom type's.
passpasspasspass
elm / TopLevelTypeAndAliasSameNameTest (must not compile)
A custom type and a type alias may not have the same name.
passpasspasspass
elm / TopLevelValueTwiceTest (must not compile)
A module may not define the same top-level value twice.
passpasspasspass
elm / TupleCharFieldTest
A tuple holding a `Char` and an `Int` (`( 'A', Char.toCode 'A' )`) is built and printed with both components intact.
passpasspasspass
elm / TuplePairTest
Tuple literals of `Int`, `String` and `Bool` components are built and printed correctly.
passpasspasspass
elm / TupleTripleTest
Checks that 3-tuple literals of `Int`s and of `String`s are built and printed by `Debug.log` as `(1,2,3)` and `("a","b","c")`.
passpasspasspass
elm / TypeAliasCtorTest
Checks that the name of a record type alias can be used as a function that builds the record, taking the fields in the order the alias declares them.
passpasspasspass
elm / TypeClassConstraintTest
Checks functions whose types use the constrained type variables `number`, `comparable` and `appendable`.
passpasspasspass
elm / TypeConstructorTooFewArgsTest (must not compile)
A type constructor given fewer arguments than it takes is not a type: `List -> List` is rejected.
passpasspasspass
elm / TypeExprUnitAppliedTest (must not compile)elm19-compile-error
The type annotation `foo : () String Float` is rejected, and not as a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessOnANumberTest (must not compile)elm19-compile-error
Field access on an `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessOnAnEmptyRecordTest (must not compile)elm19-compile-error
Reading a field from an empty record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessorUnderIntTest (must not compile)elm19-compile-error
A field accessor function annotated as `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasNamedLikeAnImportedTypeTest (must not compile)elm19-compile-error
A local type alias that shadows an imported type name is a different type from it, so mixing the two is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasWhereARecordTest (must not compile)elm19-compile-error
A value of a record alias used where a record with a differently typed field is expected is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasedRecordFieldOfTheWrongTypeTest (must not compile)elm19-compile-error
A record whose field has the wrong type for its record alias annotation is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAppendableAgainstATupleTest (must not compile)elm19-compile-error
A list whose tuple elements disagree in both components is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentOfAFixedConstructorPatternTest (must not compile)elm19-compile-error
A constructor pattern whose argument has the wrong type is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentToAConstructorTest (must not compile)elm19-compile-error
A constructor applied to an argument of the wrong type is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentToAnOperatorFunctionTest (must not compile)elm19-compile-error
A `String` passed to the operator function `(+)` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfAppendTest (must not compile)elm19-compile-error
A `Bool` on the left of `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfMinusTest (must not compile)elm19-compile-error
A `Bool` on the left of `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfPowerTest (must not compile)elm19-compile-error
A `Bool` on the left of `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfTimesTest (must not compile)elm19-compile-error
A `Bool` on the left of `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolPatternTest (must not compile)elm19-compile-error
A `True` pattern in a `case` on a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolRightOfAppendWithAStringTest (must not compile)elm19-compile-error
A `Bool` on the right of `++` after a `String` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolRightOfPlusTest (must not compile)elm19-compile-error
`1 + True` is rejected with a TYPE MISMATCH, because `+` takes two numbers and `True` is a `Bool`.
passpasspasspass
elm / TypeMismatchBoolsComparedTest (must not compile)elm19-compile-error
`True < False` is rejected with a TYPE MISMATCH, because `<` takes comparable values and `Bool` is not comparable.
passpasspasspass
elm / TypeMismatchCaseAsAnArgumentTest (must not compile)elm19-compile-error
A `case` expression passed as the argument to `not` is rejected with a TYPE MISMATCH, because its branch yields a number and `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchCharUnderIntTest (must not compile)elm19-compile-error
A value annotated `Int` but defined as the character `'c'` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchClosedRecordWhereExtensibleTest (must not compile)elm19-compile-error
Passing a record that lacks a field the result must have is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendAgainstARigidVarTest (must not compile)elm19-compile-error
A value used with both `++` and `<` cannot share a type with an annotation's type variable, and the program is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendAgainstATupleTest (must not compile)elm19-compile-error
A list whose two tuple entries disagree, one holding a value used with both `++` and `<`, the other a tuple of numbers in that position, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendListEntryWithABoolTest (must not compile)elm19-compile-error
A list holding a value used with both `++` and `<` alongside `True` is rejected with a TYPE MISMATCH, because `Bool` can be neither appended nor compared.
passpasspasspass
elm / TypeMismatchComparableAgainstATupleTest (must not compile)elm19-compile-error
A list whose two tuple entries disagree, one holding a value used with `<`, the other a tuple of numbers in that position, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchComposedWithANumberTest (must not compile)elm19-compile-error
`not >> 1` is rejected with a TYPE MISMATCH, because `>>` composes two functions and `1` is a number.
passpasspasspass
elm / TypeMismatchConsHeadAgainstAConsTailTest (must not compile)elm19-compile-error
A list pattern `1 :: "s" :: rest` is rejected with a TYPE MISMATCH, because it asks for a number and a `String` as elements of the same list.
passpasspasspass
elm / TypeMismatchConsedOntoABoolTest (must not compile)elm19-compile-error
`1 :: True` is rejected with a TYPE MISMATCH, because the right side of `::` must be a list and `True` is a `Bool`.
passpasspasspass
elm / TypeMismatchConsedOntoAMaybeTest (must not compile)elm19-compile-error
`1 :: Just 1` is rejected with a TYPE MISMATCH, because the right side of `::` must be a list and `Just 1` is a `Maybe`.
passpasspasspass
elm / TypeMismatchConstructorPatternTest (must not compile)elm19-compile-error
A `case` on the number `1` with a `Just a` branch is rejected with a TYPE MISMATCH, because the pattern is a `Maybe` and the value is a number.
passpasspasspass
elm / TypeMismatchDestructureTest (must not compile)elm19-compile-error
Destructuring the number `1` with the tuple pattern `( a, b )` in a `let` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchDifferentlyNamedComparableVarsTest (must not compile)elm19-compile-error
A list of two tuples whose first components are values of different custom types is rejected with a TYPE MISMATCH, where the second components are functions annotated with differently named `comparable` variables.
passpasspasspass
elm / TypeMismatchDifferentlyNamedFlexVarsTest (must not compile)elm19-compile-error
A list of two tuples whose first components are values of different custom types is rejected with a TYPE MISMATCH, where the second components are functions annotated with differently named type variables.
passpasspasspass
elm / TypeMismatchExtensibleRecordGivenAClosedOneTest (must not compile)elm19-compile-error
A function annotated to return the extensible record `{ r | name : Int }` but returning the record literal `{ name = 1 }` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchExtensibleRecordMissingAFieldTest (must not compile)elm19-compile-error
Passing `{ age = 1 }` to a function that takes `{ r | name : Int }` is rejected with a TYPE MISMATCH, because the record has no `name` field.
passpasspasspass
elm / TypeMismatchFieldAccessUnderIntTest (must not compile)elm19-compile-error
A value annotated `Int` but defined as a `String` field of a record, `r.name`, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchFieldTypoTest (must not compile)elm19-compile-error
The compiler rejects access to a misspelled record field, `r.nmae` on a record whose only field is `name`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFlexibleRecordWhereClosedAfterAMismatchTest (must not compile)elm19-compile-error
The compiler rejects passing a tuple whose two components both disagree with the annotation, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFlexibleRecordWithAnExtraFieldWhereClosedTest (must not compile)elm19-compile-error
The compiler rejects passing a record that must have an `age` field to a function that takes exactly `{ name : Int }`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatComparedForEqualityTest (must not compile)elm19-compile-error
The compiler rejects `1.5 == "a"`, an equality test between a `Float` and a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatLeftOfAppendTest (must not compile)elm19-compile-error
The compiler rejects a `Float` on the left of `++`, which only accepts strings and lists, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatLeftOfIntDivideTest (must not compile)elm19-compile-error
The compiler rejects the `Float` literal `1.5` on the left of the integer division operator `//`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatRightOfIntDivideTest (must not compile)elm19-compile-error
The compiler rejects the `Float` literal `1.5` on the right of the integer division operator `//`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatRightOfMinusWithIntTest (must not compile)elm19-compile-error
The compiler rejects `n - f`, subtracting a `Float` from an `Int`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatRightOfPlusWithIntTest (must not compile)elm19-compile-error
The compiler rejects `n + f`, adding a `Float` to an `Int`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatRightOfPowerWithIntTest (must not compile)elm19-compile-error
The compiler rejects `n ^ f`, raising an `Int` to a `Float` power, with a TYPE MISMATCH error, because `^` needs both sides to be the same number type.
passpasspasspass
elm / TypeMismatchFloatRightOfTimesWithIntTest (must not compile)elm19-compile-error
The compiler rejects `n * f`, multiplying an `Int` by a `Float`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatUnderIntTest (must not compile)elm19-compile-error
The compiler rejects the `Float` literal `1.5` as the body of a definition annotated `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFunctionInATypeArgumentTest (must not compile)elm19-compile-error
The compiler rejects a list holding `Just not` as the body of a definition annotated `Maybe (Int -> Int)`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFunctionLeftOfGreaterThanTest (must not compile)elm19-compile-error
The compiler rejects `not > not`, comparing two functions with `>`, with a TYPE MISMATCH error, because functions are not `comparable`.
passpasspasspass
elm / TypeMismatchIfBranchTest (must not compile)elm19-compile-error
The compiler rejects an `if` whose `then` branch is a number and whose `else` branch is a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIfConditionIntTest (must not compile)elm19-compile-error
The compiler rejects an `if` whose condition is the number `1` rather than a `Bool`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIfUnderIntTest (must not compile)elm19-compile-error
The compiler rejects an `if` producing strings as the body of a definition annotated `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchImportedTypeNamedLikeAnAliasTest (must not compile)elm19-compile-error
The compiler rejects a list holding both `Basics.True` and a value of a local alias named `Bool`, which stands for `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntAgainstNumberAfterAMismatchTest (must not compile)elm19-compile-error
The compiler rejects a list of pairs whose second entry has a `String` first component where the first entry has a number, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntRightOfAppendTest (must not compile)elm19-compile-error
The compiler rejects `"a" ++ n`, appending an `Int` to a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntRightOfAppendWithAListTest (must not compile)elm19-compile-error
Appending an `Int` to a list with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfDivideTest (must not compile)elm19-compile-error
Dividing by an `Int` with `/` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfMinusWithFloatTest (must not compile)elm19-compile-error
Subtracting an `Int` from a `Float` with `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfPlusWithFloatTest (must not compile)elm19-compile-error
Adding an `Int` to a `Float` with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfPowerWithFloatTest (must not compile)elm19-compile-error
Raising a `Float` to an `Int` power with `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfTimesWithFloatTest (must not compile)elm19-compile-error
Multiplying a `Float` by an `Int` with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntWhereFloatTest (must not compile)elm19-compile-error
Returning an `Int` from a definition annotated `Float` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLambdaArgumentPatternTest (must not compile)elm19-compile-error
Applying a lambda with a tuple pattern to a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLambdaCallAsAnArgumentTest (must not compile)elm19-compile-error
Passing the result of a lambda call to `not` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListConsedOntoAListOfStringsTest (must not compile)elm19-compile-error
Consing a list onto a list of strings with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListEntryPatternTest (must not compile)elm19-compile-error
A list pattern whose entries have different types is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListMultipliedTest (must not compile)elm19-compile-error
Multiplying a list with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListPatternTest (must not compile)elm19-compile-error
Matching a number against a list pattern is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfAppendWithAStringTest (must not compile)elm19-compile-error
Appending a list to a `String` with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfPlusTest (must not compile)elm19-compile-error
Adding a list to a number with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfTimesTest (must not compile)elm19-compile-error
Multiplying a number by a list with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListsAddedTest (must not compile)elm19-compile-error
Adding two lists with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLocalTypeNamedLikeAnImportedOneTest (must not compile)elm19-compile-error
A local type named `Maybe` is a different type from the core `Maybe`, so mixing them is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMaybeConsedOntoAListOfStringsTest (must not compile)elm19-compile-error
Consing a `Maybe` onto a list of strings with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMaybeOfANumberAgainstARigidVarTest (must not compile)elm19-compile-error
Returning `Just 1` from a function annotated `a -> a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMisspeltFieldAmongManyTest (must not compile)elm19-compile-error
Accessing a misspelt field of a record with many fields is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMisspeltFieldOfExtensibleRecordTest (must not compile)elm19-compile-error
A function annotated to take an extensible record with fields `alpha` and `beta` that reads the misspelt field `r.alpah` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNegateTest (must not compile)elm19-compile-error
Negating a `String` with the prefix minus (`-s`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberAndAppendableListEntriesTest (must not compile)elm19-compile-error
A list literal whose entries are `a + 1` and `b ++ b` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberAndCompappendListEntriesTest (must not compile)elm19-compile-error
A list literal whose entries are `a + 1` and a value `c` that is both appended (`b ++ b`) and compared (`c < c`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberIntoNotWithPipeLeftTest (must not compile)elm19-compile-error
Applying `not` to a number with `<|` (`not <| 1`) is rejected with a TYPE MISMATCH error, because `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchNumberLeftOfAndTest (must not compile)elm19-compile-error
A number as the left operand of `&&` (`1 && True`) is rejected with a TYPE MISMATCH error, because `&&` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberLeftOfComposeRightTest (must not compile)elm19-compile-error
A number as the left operand of `>>` (`1 >> not`) is rejected with a TYPE MISMATCH error, because `>>` composes two functions.
passpasspasspass
elm / TypeMismatchNumberLeftOfOrTest (must not compile)elm19-compile-error
A number as the left operand of `||` (`1 || True`) is rejected with a TYPE MISMATCH error, because `||` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberLeftOfPipeLeftTest (must not compile)elm19-compile-error
A number as the left operand of `<|` (`1 <| 2`) is rejected with a TYPE MISMATCH error, because `<|` applies its left operand as a function.
passpasspasspass
elm / TypeMismatchNumberListEntryWithAnAliasTest (must not compile)elm19-compile-error
A list literal holding a number and a value of the record alias `N` (`[ 1, n ]`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberPipedIntoANumberTest (must not compile)elm19-compile-error
Piping a number into another number (`1 |> 2`) is rejected with a TYPE MISMATCH error, because `|>` applies its right operand as a function.
passpasspasspass
elm / TypeMismatchNumberPipedIntoNotTest (must not compile)elm19-compile-error
Piping a number into `not` (`1 |> not`) is rejected with a TYPE MISMATCH error, because `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchNumberPlusAppendableTest (must not compile)elm19-compile-error
Appending to the result of an addition (`(a + 1) ++ b`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberRightOfAndTest (must not compile)elm19-compile-error
A number as the right operand of `&&` (`True && 1`) is rejected with a TYPE MISMATCH error, because `&&` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberRightOfOrTest (must not compile)elm19-compile-error
A number as the right operand of `||` (`True || 1`) is rejected with a TYPE MISMATCH error, because `||` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchOneArgumentFunctionWhereTwoTest (must not compile)elm19-compile-error
Defining `f : Int -> Int -> Int` as a function of type `Int -> Int` (`f = g`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchParameterisedAliasTest (must not compile)elm19-compile-error
Giving a `Box Int` where a `Box String` is annotated is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchRecordFieldExtraTest (must not compile)elm19-compile-error
Passing the record `{ name = 1, age = 2 }` to a function annotated to take exactly `{ name : Int }` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchRecordFieldsMissingTest (must not compile)elm19-compile-error
Passing the record `{ name = 1 }` to a function annotated to take `{ name : Int, age : Int, size : Int }` is rejected with a TYPE MISMATCH error, because the fields `age` and `size` are missing.
passpasspasspass
elm / TypeMismatchRecordLeftOfAtMostTest (must not compile)elm19-compile-error
Comparing two records with `<=` is rejected with a TYPE MISMATCH error, because `<=` takes `comparable` operands and records are not comparable.
passpasspasspass
elm / TypeMismatchRecordPatternTest (must not compile)elm19-compile-error
A record pattern on an argument annotated as `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRecordWhereEmptyClosedRecordTest (must not compile)elm19-compile-error
A record with a field, given where the annotation says the empty record `{}`, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidAppendableAddedTest (must not compile)elm19-compile-error
Adding two values of an annotated `appendable` type with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidCompappendAsIntTest (must not compile)elm19-compile-error
Returning an annotated `compappend` value where the annotation says `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidComparableAsANumberTest (must not compile)elm19-compile-error
Returning a number literal where the annotation promises a `comparable` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidComparableAsNumberTest (must not compile)elm19-compile-error
Returning an annotated `comparable` value where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidExtensionWhereClosedTest (must not compile)elm19-compile-error
Returning an extensible record argument where the annotation says a closed record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidExtensionWhereFlexibleAfterAMismatchTest (must not compile)elm19-compile-error
An extensible record argument placed in a list beside an unannotated local value is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsAliasTest (must not compile)elm19-compile-error
Returning a record-alias value where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsFunctionTest (must not compile)elm19-compile-error
Returning a lambda where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsMaybeTest (must not compile)elm19-compile-error
Returning a `Maybe` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsRecordTest (must not compile)elm19-compile-error
Returning a record where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsRigidVarTest (must not compile)elm19-compile-error
Returning a value of an annotated type variable `a` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsTupleTest (must not compile)elm19-compile-error
Returning a tuple where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsUnitTest (must not compile)elm19-compile-error
Returning `()` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAgainstItsListTest (must not compile)elm19-compile-error
Returning an argument of type `a` where the annotation says `List a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAgainstItsMaybeTest (must not compile)elm19-compile-error
Returning an argument of type `a` where the annotation says `Maybe a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAppendedTest (must not compile)elm19-compile-error
Appending two values of an unconstrained annotated type variable with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsAliasTest (must not compile)elm19-compile-error
Returning a record-alias value where the annotation promises a type variable `a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsFunctionTest (must not compile)elm19-compile-error
Returning a lambda where the annotation promises a type variable `a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsMaybeTest (must not compile)elm19-compile-error
A function annotated `a -> a` that returns a `Maybe` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsRecordTest (must not compile)elm19-compile-error
A function annotated `a -> a` that returns a record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsRigidNumberTest (must not compile)elm19-compile-error
A function that returns its `number` argument where its annotation promises a different type variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsTupleTest (must not compile)elm19-compile-error
A function annotated `a -> a` that returns a tuple is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsUnitTest (must not compile)elm19-compile-error
A function annotated `a -> a` that returns unit is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarComparedTest (must not compile)elm19-compile-error
Comparing values of an unconstrained annotated type variable with `<` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSameRigidExtensionTest (must not compile)elm19-compile-error
An extensible record returned with a field of a different type than its annotation promises is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSecondArgumentToAFunctionTest (must not compile)elm19-compile-error
Passing a number as the second argument of a function that expects a `String` there is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSecondCasePatternTest (must not compile)elm19-compile-error
A `case` on a `String` whose second pattern is a `Char` literal is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstANumberTest (must not compile)elm19-compile-error
An unannotated function argument that is applied to itself and also used as a numeric function is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstARigidNumberTest (must not compile)elm19-compile-error
A local function argument that is applied to itself and also listed beside a function involving an annotated `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstARigidVarTest (must not compile)elm19-compile-error
A local function argument that is applied to itself and also listed beside a function involving an annotated type variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringAppendedToListTest (must not compile)elm19-compile-error
Appending a `String` to a list with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfConsTest (must not compile)elm19-compile-error
Consing a `String` onto a list of numbers with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfDivideTest (must not compile)elm19-compile-error
A `String` as the left operand of `/` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfIntDivideTest (must not compile)elm19-compile-error
A `String` as the left operand of `//` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfLessThanTest (must not compile)elm19-compile-error
Comparing a `String` with a number using `<` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfPlusTest (must not compile)elm19-compile-error
A `String` as the left operand of `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfAtLeastTest (must not compile)elm19-compile-error
Comparing a number with a `String` using `>=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfAtMostTest (must not compile)elm19-compile-error
Comparing a number with a `String` using `<=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfGreaterThanTest (must not compile)elm19-compile-error
Comparing a number with a `String` using `>` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfMinusTest (must not compile)elm19-compile-error
A `String` as the right operand of `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfNotEqualsTest (must not compile)elm19-compile-error
Comparing a number with a `String` using `/=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfPlusTest (must not compile)elm19-compile-error
A `String` as the right operand of `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfPowerTest (must not compile)elm19-compile-error
A `String` as the right operand of `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfTimesTest (must not compile)elm19-compile-error
A `String` as the right operand of `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTailPatternTest (must not compile)elm19-compile-error
A list pattern whose tail is a `String` literal is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchThirdCaseBranchTest (must not compile)elm19-compile-error
A `case` whose third branch returns a number while the first two return `String`s is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTriplesDifferTest (must not compile)elm19-compile-error
A triple whose third component does not match its annotation is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleAgainstAnAliasTest (must not compile)elm19-compile-error
A list holding a value of an alias for `Int` and a tuple is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleComponentPatternTest (must not compile)elm19-compile-error
A tuple pattern whose first component is a `String` literal, matched against a tuple of numbers, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleSizesDifferTest (must not compile)elm19-compile-error
A triple given where the annotation promises a pair is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwentyEightTypeVariablesTest (must not compile)elm19-compile-error
Using a function of 28 unannotated arguments as a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoAliasedRecordsTest (must not compile)elm19-compile-error
A value of one record alias annotated as a different record alias is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoArgumentLambdaWhereOneTest (must not compile)elm19-compile-error
A two-argument lambda annotated as `Int -> Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoComparableVarsTest (must not compile)elm19-compile-error
A list mixing tuples whose first components have different custom types is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoExtensibleRecordsTest (must not compile)elm19-compile-error
An extensible record returned where the annotation promises a record with a different extension variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoFlexibleRecordsTest (must not compile)elm19-compile-error
A record argument whose `name` field is used both as a number and as a `String` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoRigidVarsTest (must not compile)elm19-compile-error
A function annotated `a -> b` that returns its argument is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTypeUnderAnExposingListTest (must not compile)elm19-compile-error
A value annotated `Int` but defined as `Just 1` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchTypeWhereAnAliasTest (must not compile)elm19-compile-error
A value annotated with a type alias of `Int` but defined as a `String` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitLeftOfAtLeastTest (must not compile)elm19-compile-error
Comparing two unit values with `>=` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitPatternTest (must not compile)elm19-compile-error
A function annotated `Int -> Int` whose parameter is the unit pattern `()` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitsOnBothSidesTest (must not compile)elm19-compile-error
A list of pairs whose second components differ, `( (), 1 )` and `( (), "a" )`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstANumberTest (must not compile)elm19-compile-error
A function whose case branches return `( Just 1, h )` and `( True, x + 1 )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstARigidNumberTest (must not compile)elm19-compile-error
A function annotated `number -> ( Bool, number )` whose case branches return `( Just 1, h )` and `( True, x )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstARigidVarTest (must not compile)elm19-compile-error
A function annotated `a -> ( Bool, a )` whose case branches return `( Just 1, h )` and `( True, x )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypesOnBothSidesTest (must not compile)elm19-compile-error
A list of pairs `( h, 1 )` and `( h, "a" )`, built inside a case on `[ 1, "a" ]`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfANearFieldTest (must not compile)elm19-compile-error
A record update that sets a misspelt field, `cuont` on a record whose only field is `count`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfANumberTest (must not compile)elm19-compile-error
A record update applied to an `Int`, `{ n | x = 1 }` with `n : Int`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfAnEmptyRecordTest (must not compile)elm19-compile-error
A record update that sets field `x` on the empty record `{}` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateValueTest (must not compile)elm19-compile-error
A record update that gives an `Int` field a `String`, `{ r | x = "s" }` with `r : { x : Int }`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeParameterTwiceTest (must not compile)
A type's parameter list may not name the same type variable twice.
passpasspasspass
elm / UnexpectedPatternFloatWithExponentTest (must not compile)elm19-compile-error
A case branch whose pattern is the float literal `1e3` is rejected with an UNEXPECTED PATTERN error.
passpasspasspass
elm / UnknownOperatorAnUnknownOperatorTest (must not compile)elm19-compile-error
Using an operator that no module defines, `1 <=> 2`, is rejected with an UNKNOWN OPERATOR error.
passpasspasspass
elm / UnreachableModuleTest
A module that the main module does not reach is not part of the program, so it does not matter that it would not compile.
passpasspasspass
elm / UnsafePatternAllDestructPatternsEdgeCaseCasesTest (must not compile)elm19-compile-error
A `let` that destructures a list with `(h :: t) = [ 4, 5 ]` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternDestructFixedListPatternLetDestructCasesTest (must not compile)elm19-compile-error
A `let` that destructures a list with the fixed-length pattern `[ a, b ] = [ 1, 2 ]` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternMixedNestedAliasesAsPatternCasesTest (must not compile)elm19-compile-error
A function parameter pattern `(( { x }, (h :: _) as list ) as all)` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternTripleNestedPatternsPatternArgCasesTest (must not compile)elm19-compile-error
A function parameter pattern `( ( a, b ), { x, y }, h :: t )` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UserBoolNamedCtorTest
A custom type may name its own constructors `True` and `False`, and they behave as ordinary constructors, distinct from each other and from `Unknown`.
passpasspasspass
elm / WeirdElseBranchElseNotIndentedTest (must not compile)elm19-compile-error
An `if` inside a `let` binding whose `else` sits at the binding's own column, to the left of its `if`, is rejected with a WEIRD ELSE BRANCH error.
passpasspasspass
elm / WideClosureSat26Test
A function given 26 `Int` arguments at once returns a working one-argument function that still sees all 26 of them.
passpasspasspass
elm / WideCtorField24Test
A custom type constructor with 27 fields, 25 `Int`s followed by a `Float` and a `Char`, keeps every field, and pattern matching reads back the later ones.
passpasspasspass
elm / WideCtorMixedTest
A custom type constructor with 60 fields, cycling through `Int`, `Float`, `Char`, `String` and `Bool`, supports pattern matching, equality and printing.
passpasspasspass
elm / WideRecord33Test
A record with 33 fields, cycling through `Int`, `Float`, `Char`, `String` and `Bool`, supports field access, record patterns, update, equality and printing.
passpasspasspass
elm / WideRecord40Test
A record with 40 fields, cycling through `Int`, `Float`, `Char`, `String` and `Bool`, supports field access, record patterns, update, equality and printing.
passpasspasspass
elm / WideRecordDecoder26Test
A 26-field record alias, used as a constructor function, can be filled in one argument at a time by an `andMap` pipeline over `Maybe`.
passpasspasspass
elm / WideRecordDecoder30Test
A 30-field record alias, used as a constructor function, can be filled in one argument at a time by an `andMap` pipeline over `Maybe`, with fields of different types near the end.
passpasspasspass
elm / WideRecordDecoder70Test
A 70-field record alias, used as a constructor function, can be filled in one argument at a time by an `andMap` pipeline over `Maybe`.
passpasspasspass
elm / WideRecordPatternTest
A record with 28 `Int` fields reads back correctly through field access, through a record pattern, and after a record update.
passpasspasspass
elm / WrapperUnionFieldTest
A single-constructor custom type can wrap a record whose field is itself a custom type, and a nested `case` reads the payload of that field.
passpasspasspass
elm-core / BasicsClampTest
`clamp 5 10` returns the lower bound for 3, the value itself for 7 and the upper bound for 15, and `clamp 1.0 5.0` leaves 3.5 unchanged.
passpasspasspass
elm-core / BasicsIdentityTest
`identity` returns its argument unchanged for an Int and a String, and `always 99` returns 99 whatever its second argument.
passpasspasspass
elm-core / BasicsIsNaNTest
`isNaN` is true for `0 / 0` and false for 42.0, and `isInfinite` is true for `1 / 0` and false for 42.0.
passpasspasspass
elm-core / BasicsModByTest
`modBy 3` gives 1 for 7, 0 for 9, and 2 for -1: the result takes the sign of the modulus, not of the dividend.
passpasspasspass
elm-core / BoolNotTest
`not` negates a Bool: `not True` is `False` and `not False` is `True`.
passpasspasspass
elm-core / BoolXorTest
The Basics `xor` function gives `True` exactly when its two Bool arguments differ, checked over all four combinations.
passpasspasspass
elm-core / CeilingToIntTest
`ceiling` rounds a `Float` up to an `Int`: `ceiling 2.3` is 3 and `ceiling -2.7` is -2.
passpasspasspass
elm-core / CharAstralCodeTest
`Char.fromCode` and `Char.toCode` round-trip Unicode code points, including astral ones (above 0xFFFF) and the largest, 0x10FFFF.
passpasspasspass
elm-core / CharFromCodeTest
`Char.fromCode` turns the code points 65, 97 and 48 into `'A'`, `'a'` and `'0'`.
passpasspasspass
elm-core / CharToCodeTest
`Char.toCode` gives the code points 65, 97 and 48 for `'A'`, `'a'` and `'0'`.
passpasspasspass
elm-core / CharToCodeThroughFunctionTest
`Char.toCode` of a character returned from a top-level function, here an identity function applied to `'A'`, gives 65.
passpasspasspass
elm-core / CmdMapComposeTest
`Cmd.map` applies its functions to a command's message, the innermost first.
passpasspasspass
elm-core / ComparableMinMaxTest
`min` and `max` on `String` and `Char`, which order them by character code.
passpasspasspass
elm-core / CompareCharCaptureTest
A local insertion sort, `sortWith`, on a list of `Char`, given `compare` itself and given a lambda that calls `compare` with its arguments swapped.
passpasspasspass
elm-core / CompareCharTest
`compare` on `Char` returns `LT`, `GT` or `EQ` by character code.
passpasspasspass
elm-core / CompareCustomWithEmptyListFieldTest
Ordering and equality of a custom type whose `List Int` field may be empty.
passpasspasspass
elm-core / CompareEmptyListTest
`compare` on `List Int` values, including the empty list.
passpasspasspass
elm-core / CompareEmptyStringTest
`compare` on `String` values, including the empty string.
passpasspasspass
elm-core / CompareFloatCaptureTest
`compare` on `Float` passed as a function value to a local insertion sort, `sortWith`.
passpasspasspass
elm-core / CompareFloatTest
`compare` on `Float` returns `LT`, `GT` and `EQ` for less, greater and equal operands.
passpasspasspass
elm-core / CompareIntCaptureTest
`compare` on `Int` passed as a function value to a local insertion sort, `sortWith`.
passpasspasspass
elm-core / CompareIntTest
`compare` on `Int` returns `LT`, `GT` and `EQ` for less, greater and equal operands.
passpasspasspass
elm-core / CompareNestedEmptyListTest
`compare` on `List (List Int)` values where some inner lists are empty.
passpasspasspass
elm-core / CompareRecordWithEmptyListFieldTest
Ordering and equality of a record whose `List Int` field may be empty.
passpasspasspass
elm-core / CompareStringTest
`compare` on `String` returns `LT`, `GT` and `EQ` for strings that are less than, greater than and equal to one another, comparing character codes from the first character.
passpasspasspass
elm-core / CompareTupleWithEmptyListNestedTest
`compare` on tuples nested two deep whose `List Int` field may be empty.
passpasspasspass
elm-core / CompareTupleWithEmptyListTest
`compare` on pairs whose `List Int` field may be empty.
passpasspasspass
elm-core / CompareTupleWithEmptyStringTest
`compare` on pairs whose `String` field may be empty.
passpasspasspass
elm-core / CompilerIssue2362NanTupleEqualityTestelm19-bug
A tuple holding NaN is not equal to anything, including itself.
failfailfailfail
elm-core / CompositionTest
Function composition with `>>` and `<<`, and the pipe operator `|>`.
passpasspasspass
elm-core / ContainerCompareCharTest
Ordering of pairs, triples and lists of `Char` with `compare` and the relational operators.
passpasspasspass
elm-core / ContainerCompareIntTest
Ordering of pairs, triples and lists of `Int` with `compare` and the relational operators.
passpasspasspass
elm-core / ContainerEqualityCharTest
Checks `==` on pairs, triples and lists of `Char`.
passpasspasspass
elm-core / ContainerEqualityCustomFloatTest
Checks `==` on custom-type values whose fields are `Float`, including NaN, infinities and negative zero.
passpasspasspass
elm-core / ContainerEqualityFloatTest
Checks `==` on pairs, triples and lists of `Float`, including NaN, infinities and negative zero.
passpasspasspass
elm-core / ContainerEqualityIntTest
Checks `==` on pairs, triples and lists of `Int`.
passpasspasspass
elm-core / ContainerEqualityRecordFloatTest
Checks `==` on records whose fields are `Float`, including NaN, infinities and negative zero.
passpasspasspass
elm-core / ContainerEqualityStringTest
Checks `==` on pairs, triples and lists of `String`.
passpasspasspass
elm-core / ControlFlowBooleanWithNotTest
Checks `not` applied to a comparison: `not (n > 0)` for `n = -5` is `True`.
passpasspasspass
elm-core / CoreIssue1050NanGreaterThanNanTestelm19-bug
`NaN > NaN` and `NaN >= NaN` are False.
failfailfailfail
elm-core / CoreIssue1080ClampNanTestelm19-bug
`clamp -100 100` of NaN returns NaN.
failfailfailfail
elm-core / CoreIssue1110PortDeclarationOrderTestelm19-bug
A subscription returned together with a port command is active in time to receive that command's synchronous reply.
failfailfailfail
elm-core / CoreIssue1115NanEqualsLiteralZeroTestelm19-bug
NaN compared with a literal `0` is not equal, on either side of `==`.
failfailfailfail
elm-core / CoreIssue1150CharToCodeLoneSurrogateTestelm19-bug
`Char.toCode` returns NaN, typed as `Int`, for a lone surrogate.
failfailfailfail
elm-core / CoreIssue1154PortSubscribedWithCmdTestelm19-bug
A port subscription added by the same `update` that sends a command to an outgoing port misses the outgoing port's synchronous reply, depending on the order of the ports in the generated code.
failfailfailfail
elm-core / CoreIssue955KillProcessTwiceTestelm19-bug
Killing a process that has already finished, a second time, throws a JavaScript error.
failfailfailfail
elm-core / CoreIssue960PowNegativeExponentIntTestelm19-bug
`(^)` on two `Int`s with a negative exponent returns a fraction typed as `Int`.
failfailfailfail
elm-core / CoreIssue988NanEqualityReferenceTestelm19-bug
Structural equality of values containing NaN depends on reference identity.
failfailfailfail
elm-core / EqBoxedFastPathTest
Structural equality gives the correct answer for strings, lists, tuples, records, custom types, unit, empty values, `Bool` and nested containers, through both `==` and `/=`.
passpasspasspass
elm-core / EqualityBoolCaseTest
The result of `==` on `Bool` operands drives a `case` on `True` and `False` correctly.
passpasspasspass
elm-core / EqualityBoolContainerTest
Structural equality compares `Bool` elements inside tuples and lists correctly.
passpasspasspass
elm-core / EqualityBoolIfTest
The result of `==` and `/=` on `Bool` operands drives an `if` expression correctly.
passpasspasspass
elm-core / EqualityBoolMaybeTest
Equality on `Maybe Bool` compares the wrapped `Bool` values and tells `Nothing` apart from `Just`.
passpasspasspass
elm-core / EqualityBoolPapTest
`(==)` partially applied to a `Bool` works as an ordinary predicate passed to the local helpers `map`, `filter` and `any`, written with patterns.
passpasspasspass
elm-core / EqualityBoolRecordTest
Record equality compares `Bool` fields correctly.
passpasspasspass
elm-core / EqualityBoolTest
`==` and `/=` on `Bool` literals give the correct answer for all four combinations of operands.
passpasspasspass
elm-core / EqualityBoolVarTest
`==` on `Bool` values gives the correct answer when the operands are variables or arguments rather than literals.
passpasspasspass
elm-core / EqualityOtherConstantsTest
`==` on empty and non-empty values of `String`, `List Int`, `Maybe Int` and `()` gives the right answer in both argument orders.
passpasspasspass
elm-core / EqualityTest
`==` and `/=` give the right answer on `Int` literals, and `==` is `True` for two equal `List Int` literals.
passpasspasspass
elm-core / FloatAbsTest
`abs` on a positive, a negative and a zero `Float`.
passpasspasspass
elm-core / FloatAddTest
`+` on `Float` literals, including negative operands and a sum of zero.
passpasspasspass
elm-core / FloatCeilingTest
`ceiling` rounds a `Float` up towards positive infinity, for positive, whole and negative values.
passpasspasspass
elm-core / FloatCompareTest
`<`, `>`, `<=`, `>=`, `==` and `/=` on `Float` literals, each in a case where the comparison is `True`.
passpasspasspass
elm-core / FloatDivTest
`/` on `Float` values for each combination of signs of the dividend and divisor.
passpasspasspass
elm-core / FloatFloorTest
`floor` rounds a `Float` down towards negative infinity, for positive, whole and negative values.
passpasspasspass
elm-core / FloatInfinityTest
`isInfinite` is True for positive and negative infinity and False for a finite Float.
passpasspasspass
elm-core / FloatMathAcosTest
`acos 1` is 0.
passpasspasspass
elm-core / FloatMathAsinTest
`asin 0` is 0.
passpasspasspass
elm-core / FloatMathAtan2Test
`atan2 1 1` is pi/4, printed as 0.7853981633974483.
passpasspasspass
elm-core / FloatMathAtanTest
`atan 0` is 0.
passpasspasspass
elm-core / FloatMathBasicsETest
`Basics.e` prints as 2.718281828459045.
passpasspasspass
elm-core / FloatMathFloatLessThanTest
`<` on two Float literals, `1.5 < 2.5`, is True.
passpasspasspass
elm-core / FloatMathIsNaNTest
`isNaN (0 / 0)` is True.
passpasspasspass
elm-core / FloatMathSin2PlusCos21Test
`sin 1 * sin 1 + cos 1 * cos 1` prints as exactly 1.
passpasspasspass
elm-core / FloatMathTanTest
`tan 0` is 0.
passpasspasspass
elm-core / FloatMinMaxTest
`min` and `max` on Floats pick the smaller and larger argument, including with a negative argument.
passpasspasspass
elm-core / FloatMulTest
Float multiplication gives the expected sign and value for positive, mixed-sign, two negative and zero operands.
passpasspasspass
elm-core / FloatNaNTest
`isNaN` is True for `0.0 / 0.0` and False for 3.14, and NaN plus 1.0 is NaN: the book's `add` gives NaN when either argument is NaN.
passpasspasspass
elm-core / FloatNegateTest
`negate` flips the sign of a positive and a negative Float, and `negate 0.0` prints as 0.
passpasspasspass
elm-core / FloatNegativeZeroTest
Negative zero (`-0.0`) equals 0.0, and dividing 1.0 by it gives -Infinity while dividing by 0.0 gives Infinity.
passpasspasspass
elm-core / FloatPowTest
`^` on Floats computes powers with positive, zero and negative exponents.
passpasspasspass
elm-core / FloatRoundTest
`round` rounds a Float to the nearest Int, with halves rounded up: 2.5 gives 3 and 3.5 gives 4.
passpasspasspass
elm-core / FloatSqrtTest
`sqrt` of 4.0, 9.0 and 0.0 is 2, 3 and 0.
passpasspasspass
elm-core / FloatSubTest
Float subtraction gives the expected value, including when the right operand is a negative literal.
passpasspasspass
elm-core / FloatTruncateTest
`truncate` rounds a Float toward zero: 2.7 and 2.3 give 2, and -2.3 and -2.7 give -2.
passpasspasspass
elm-core / FloorToIntTest
`floor` rounds a Float down to an Int: 2.7 gives 2 and -2.3 gives -3.
passpasspasspass
elm-core / IntAbsTest
`abs` on an Int returns its magnitude for a positive, a negative and a zero argument.
passpasspasspass
elm-core / IntAddTest
Int addition gives the right sum for two positives, a positive and its negation, and two negatives.
passpasspasspass
elm-core / IntCompareTest
Checks that the six comparison operators `<`, `>`, `<=`, `>=`, `==` and `/=` give `True` on Int literals.
passpasspasspass
elm-core / IntDivByZeroTest
Checks that integer division `//` by zero gives 0, for a positive and for a negative dividend.
passpasspasspass
elm-core / IntDivTest
Checks that integer division `//` truncates toward zero for all four sign combinations of dividend and divisor.
passpasspasspass
elm-core / IntMinMaxTest
Checks `min` and `max` on Int arguments, including a negative one.
passpasspasspass
elm-core / IntModByTest
Checks that `modBy` with a positive modulus gives a non-negative result for a positive, a negative and a zero dividend.
passpasspasspass
elm-core / IntMulTest
Checks integer multiplication `*` with positive, mixed-sign, two negative and zero operands.
passpasspasspass
elm-core / IntNegateTest
Checks `negate` on a positive Int, a negative Int and zero.
passpasspasspass
elm-core / IntPowTest
Checks integer exponentiation `^`, including a zero exponent and a negative base with an odd exponent.
passpasspasspass
elm-core / IntRemainderByTest
Checks that `remainderBy` gives a result with the sign of the dividend, for all four sign combinations of divisor and dividend.
passpasspasspass
elm-core / IntSubTest
Checks integer subtraction `-`, including subtracting a negative literal.
passpasspasspass
elm-core / ListAppendTest
The `++` operator joins two lists in order, and appending `[]` on the right leaves a list unchanged.
passpasspasspass
elm-core / ListConcatTest
`++` joins lists in order, alone and in a chain of three, and appending to the empty list `[]` gives the other list.
passpasspasspass
elm-core / NotEqualBoolCaseTest
The result of `/=` on two `Bool` literals is matched by a `case` with `True` and `False` branches, for all four combinations of operands.
passpasspasspass
elm-core / NotEqualBoolIfTest
The result of `/=` on two `Bool` literals is used as the condition of an `if`, for all four combinations of operands; each logs `"yes"` exactly when the operands differ.
passpasspasspass
elm-core / NotEqualBoolMaybeTest
`/=` on `Maybe Bool` values gives the right answer for `Just True`, `Just False` and `Nothing`, compared in seven pairings: each value with itself, the two `Just`s both ways round, and `Nothing` with `Just True` on eith…
passpasspasspass
elm-core / NotEqualBoolPapTest
`(/=)` partially applied to a `Bool`, as `(/=) True` and `(/=) False`, works as a function value passed to the local helpers `map`, `filter` and `any`, written with patterns, over `[ True, False, True, False ]`.
passpasspasspass
elm-core / NotEqualBoolRecordTest
`/=` on records of type `{ flag : Bool }` gives the right answer for all four combinations of a record holding `True` and one holding `False`.
passpasspasspass
elm-core / NotEqualBoolTest
`/=` gives the right answer on all four combinations of `Bool` literals, and so does `not` applied to each of those results.
passpasspasspass
elm-core / NotEqualBoolVarTest
`/=` gives the right answer on `Bool` values held in `let`-bound variables, and inside a top-level helper `neqBool` that receives both operands as arguments, for all four combinations of operands.
passpasspasspass
elm-core / OrderingEmptyListPapTest
The operators `<`, `<=`, `>` and `>=` and the function `compare`, partially applied to the empty list, work as function values passed to a local `map`, written with patterns, over `[ [], [ 1 ], [ 1, 2 ] ]`.
passpasspasspass
elm-core / OrderingEmptyListTest
Tests that `<`, `<=`, `>` and `>=` on `List Int` order the empty list before any non-empty list and treat two empty lists as equal.
passpasspasspass
elm-core / OrderingEmptyStringPapTest
Tests `<`, `<=`, `>`, `>=` and `compare` partially applied to `""` and passed as functions to a local `map` written with patterns.
passpasspasspass
elm-core / OrderingEmptyStringTest
Tests that `<`, `<=`, `>` and `>=` on `String` order `""` before any non-empty string and treat two empty strings as equal.
passpasspasspass
elm-core / OrderingMixedCaptureTest
Tests `(<)` and `(>=)` passed as arguments to one polymorphic counting helper, used at `Int`, `Float` and `Char` in the same program.
passpasspasspass
elm-core / OrderingTupleWithEmptyListTest
Tests `<`, `<=`, `>` and `>=` on `( Int, List Int )` tuples whose first components are equal, so the result is decided by comparing `[]` with `[ 1 ]` in the second component.
passpasspasspass
elm-core / OrderingTupleWithEmptyStringTest
Tests `<`, `<=`, `>` and `>=` on `( Int, String )` tuples whose first components are equal, so the result is decided by comparing `""` with `"a"` in the second component.
passpasspasspass
elm-core / PipelineTest
Tests the pipeline operators `|>` and `<|`: a chain of forward pipes, a forward pipe into a partially applied local `map`, written with patterns, and a chain of backward pipes.
passpasspasspass
elm-core / ProcessPrimitiveOutcomeTest
The primitive tasks `Process.sleep`, `Process.spawn` and `Process.kill` succeed with their outcomes.
passpasspasspass
elm-core / ProcessSpawnKillHalfTest
A process killed with `Process.kill` before its sleep finishes never runs the rest of its task, while the processes left alive do.
passpasspasspass
elm-core / ProcessSpawnRecursiveTest
A process spawned with `Process.spawn` can itself spawn a process, nested five deep, and every level runs.
passpasspasspass
elm-core / ProcessSpawnedFailureEndsTest
A spawned process whose task fails ends quietly, and the program goes on.
passpasspasspass
elm-core / ProcessYieldThrashingTest
Two processes that each repeatedly yield with `Process.sleep 0` both run to completion.
passpasspasspass
elm-core / RoundToIntTest
Checks that `round` converts a `Float` to the nearest `Int`: `2.7` gives `3`, `2.3` gives `2` and `-2.7` gives `-3`.
passpasspasspass
elm-core / StandardA40IntOverflowTestelm19-bug
Int `+`, `-` and `*` give an Int, never an infinity or NaN, however large the exact result.
failfailfailfail
elm-core / StandardA41IntDivisionWideTestelm19-bug
`a // 1` is `a`, also for an `a` beyond 32 bits.
failfailfailfail
elm-core / StandardA42ModByZeroTestelm19-bug
`modBy 0 x` is `0`.
failfailfailfail
elm-core / StandardA42RemainderByZeroTestelm19-bug
`remainderBy 0 x` is `0`.
failfailfailfail
elm-core / StandardA42ZeroDivisorTestelm19-bug
`3 // 0`, `modBy 0 3` and `remainderBy 0 3` are all `0`: the examples A Standard Definition of Elm? gives for ruling A42 in its initial dynamic basis.
failfailfailfail
elm-core / StandardA43PowNegativeTestelm19-bug
Int `^` with a negative exponent: `1 ^ n` is `1`, `(-1) ^ n` is `1` or `-1` by the parity of `n`, and any other base gives `0`.
failfailfailfail
elm-core / StandardA44RoundNonFiniteTestelm19-bug
`round`, `floor` and `ceiling` of NaN are `0`, and of an infinity an Int.
failfailfailfail
elm-core / StandardA44TruncateWideTestelm19-bug
`truncate` of a Float beyond 32 bits does not wrap.
failfailfailfail
elm-core / StandardA45IntNegativeZeroTestelm19-bug
Int has one zero: no Int operation gives a negative zero.
failfailfailfail
elm-core / StandardA46CompareNanTestelm19-bug
`compare` is a total order on Float: NaN is above every other float and equal to NaN.
failfailfailfail
elm-core / StandardA48MinMaxNanTestelm19-bug
Float `min` and `max` are IEEE 754-2019 minimum and maximum, whatever the order of the arguments.
failfailfailfail
elm-core / StandardA49ClampTestelm19-bug
`clamp lo hi x`: at Float it is `min (max x lo) hi`, with the IEEE 754 `maximum` and `minimum` that propagate NaN and order `-0` below `+0`; at Int it is the text of elm/core.
failfailfailfail
elm-core / StandardA51FunctionEqualityTestelm19-bug
`==` on two functions gives a Bool; the program goes on.
failfailfailfail
elm-core / StandardA53CharOrderTestelm19-bug
Characters are ordered by their code points.
failfailfailfail
elm-core / StandardA53StringOrderTestelm19-bug
Strings are ordered character by character, by code point.
failfailfailfail
elm-core / StandardA65PowOneTestelm19-bug
Float `1 ^ y` is `1` for every `y`, and `(-1) ^ y` is `1` for an infinite `y`.
failfailfailfail
elm-core / StandardA81SleepBeyond32BitsTestelm19-bug
`Process.sleep d` waits at least `d` milliseconds, also when `d` is above 2^31 - 1.
failfailfailfail
elm-core / StringConcatContentTest
A chain of twenty `++` operations and 100 nested `++` operations built by recursion both produce the right text.
passpasspasspass
elm-core / StringConcatTest
`++` joins strings.
passpasspasspass
elm-core / TaskAttemptErrorTest
`Task.attempt` delivers both outcomes to `update` in a `Platform.worker`: `Ok` with the value of a succeeding task and `Err` with the error of a failing one.
passpasspasspass
elm-core / TaskOnErrorCascadeTest
`Task.onError` recovers a failed `Task.andThen` chain, skipping the steps between the failure and the handler, and the recovered task can be chained further.
passpasspasspass
elm-core / TaskOnErrorInnerTest
`Task.onError` lets its task take steps before it succeeds or fails.
passpasspasspass
elm-core / TaskOnErrorSucceedTest
`Task.onError` on a task that succeeds gives that task's value; the handler is not called.
passpasspasspass
elm-core / TaskPerformValueTest
`Task.perform` delivers the task's value to `update` in a `Platform.worker`, for messages that carry an `Int`, a negative `Int` or a `String`, and for a message built by a function that ignores the value.
passpasspasspass
elm-core / TaskSucceedAsArgTest
`Task.succeed`, passed as a function value to a polymorphic `apply : (a -> b) -> a -> b` with `a` instantiated to `Int`, produces a task that `Task.perform` delivers to `update` with the value 7.
passpasspasspass
elm-core / TimerEffectTest
A `Platform.worker` that chains `Process.sleep` timers through `Task.perform` receives each timer message in turn and stops after five.
passpasspasspass
elm-core / ToFloatTest
`toFloat` converts a positive, a negative and a zero `Int` to the equal `Float`.
passpasspasspass
elm-core / TruncateToIntTest
`truncate` rounds a `Float` towards zero: 2.7 gives 2 and -2.7 gives -2.
passpasspasspass
elm-core / UtilsEqualityCaptureCharTest
`(==)` and `(/=)` on `Char` give the same answers when passed as function values as when applied directly.
passpasspasspass
elm-core / UtilsEqualityCaptureFloatTest
`(==)` and `(/=)` on `Float` give the same answers when passed as function values as when applied directly.
passpasspasspass
elm-core / UtilsEqualityCaptureIntTest
`(==)` and `(/=)` on `Int` give the same answers when passed as function values as when applied directly.
passpasspasspass
elm-core / UtilsOrderingCaptureCharTest
`(<)`, `(<=)`, `(>)` and `(>=)` on `Char` give the right answers when passed as function values or applied in prefix form.
passpasspasspass
elm-core / UtilsOrderingCaptureFloatTest
`(<)`, `(<=)`, `(>)` and `(>=)` on `Float` give the right answers when passed as function values or applied in prefix form.
passpasspasspass
elm-core / UtilsOrderingCaptureIntTest
`(<)`, `(<=)`, `(>)` and `(>=)` on `Int` give the right answers when passed as function values or applied in prefix form.
passpasspasspass

Discussions

Discuss this tagΒ·Search the discussions on GitHub

Discussions are on GitHub; one about this tag has [tag:elm-spec] in its title.