Tests (7)
- elm / InfixPrecApplicationFirstTestApplication binds more tightly than any operator.
- elm-core / FloatNegateTest`negate` flips the sign of a positive and a negative Float, and `negate 0.0` prints as 0.
- elm-core / FloatNegativeZeroTestNegative zero (`-0.0`) equals 0.0, and dividing 1.0 by it gives -Infinity while dividing by 0.0 gives Infinity.
- elm-core / FloatSubTestFloat subtraction gives the expected value, including when the right operand is a negative literal.
- elm-core / IntNegateTestChecks `negate` on a positive Int, a negative Int and zero.
- elm-core / IntSubTestChecks integer subtraction `-`, including subtracting a negative literal.
- elm-core / StandardA45IntNegativeZeroTestInt has one zero: no Int operation gives a negative zero.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.negate] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.