Elm Exactly
Results / elm-core /

BitwiseOrTest

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`Bitwise.or` returns the bits set in either of two `Int`s.

Results

elm-0.19.1

passran in 77 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
or1: 15
or2: 31
or3: 15

elm-0.19.2

passran in 55 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
or1: 15
or2: 31
or3: 15

elm-0.19.3

passran in 42 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
or1: 15
or2: 31
or3: 15

lamdera-1.5.0

passran in 63 ms
Output
or1: 15
or2: 31
or3: 15

Discussions

Discuss this test·Search the discussions on GitHub

Discussions are on GitHub; one about this test has [t:elm-core/BitwiseOrTest] in its title.

Source

The -- CHECK: lines give the expected output.

module BitwiseOrTest exposing (main)
{-| `Bitwise.or` returns the bits set in either of two `Int`s.
-}
-- CHECK: or1: 15
-- CHECK: or2: 31
-- CHECK: or3: 15
import Bitwise
import Html exposing (text)
main =
let
_ = Debug.log "or1" (Bitwise.or 15 8)
_ = Debug.log "or2" (Bitwise.or 15 16)
_ = Debug.log "or3" (Bitwise.or 15 15)
in
text "done"