BitwiseOrTest
`Bitwise.or` returns the bits set in either of two `Int`s.
Results
elm-0.19.1
passran in 77 msOutput
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 msOutput
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 msOutput
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 msOutput
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"