Sha256: a5b83011b6c301bc6d660b9f2bbba14e29ef636ae6989806012d5309bcb0e6ba

Contents?: true

Size: 872 Bytes

Versions: 114

Compression:

Stored size: 872 Bytes

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import Accumulate exposing (accumulate)
import String


square : Int -> Int
square x =
    x * x


tests : Test
tests =
    describe "Accumulate"
        [ test "[] Accumulate" <|
            \() -> Expect.equal [] (accumulate square [])
        , skip <|
            test "square Accumulate" <|
                \() -> Expect.equal [ 1, 4, 9 ] (accumulate square [ 1, 2, 3 ])
        , skip <|
            test "toUpper Accumulate" <|
                \() ->
                    Expect.equal [ "HELLO", "WORLD" ]
                        (accumulate String.toUpper [ "hello", "world" ])
        , skip <|
            test "reverse Accumulate" <|
                \() ->
                    Expect.equal [ "olleh", "dlrow" ]
                        (accumulate String.reverse [ "hello", "world" ])
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.44 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.43 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.42 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.41 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.40 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.39 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.38 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.37 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.36 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.35 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.34 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.33 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.32 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.31 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.30 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.29 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.28 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.27 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.26 tracks/elm/exercises/accumulate/tests/Tests.elm
trackler-2.2.1.25 tracks/elm/exercises/accumulate/tests/Tests.elm