Tests (5)
- elm / InfixAssocLeftArithTest`-`, `/` and `//` associate to the left.
- elm-core / IntDivByZeroTestChecks that integer division `//` by zero gives 0, for a positive and for a negative dividend.
- elm-core / IntDivTestChecks that integer division `//` truncates toward zero for all four sign combinations of dividend and divisor.
- elm-core / StandardA41IntDivisionWideTest`a // 1` is `a`, also for an `a` beyond 32 bits.
- elm-core / StandardA42ZeroDivisorTest`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.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.idiv] 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.