mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-22 13:12:04 +03:00
28d36c6f64
This reverts commit4373c78d82
, reversing changes made to6b78075f02
.
34 lines
768 B
Elm
34 lines
768 B
Elm
module Spec.List.Zipper.Extra exposing (fromSpec)
|
|
|
|
import Expect exposing (Expectation)
|
|
import List.Zipper
|
|
import List.Zipper.Extra
|
|
import Test exposing (..)
|
|
|
|
|
|
fromSpec : Test
|
|
fromSpec =
|
|
let
|
|
before =
|
|
[ 1, 2 ]
|
|
|
|
current =
|
|
3
|
|
|
|
after =
|
|
[ 4, 5 ]
|
|
|
|
zipper =
|
|
List.Zipper.Extra.from before current after
|
|
in
|
|
describe "List.Zipper.Extra.from before current after"
|
|
[ test "before" <|
|
|
\() ->
|
|
Expect.equal (List.Zipper.before zipper) before
|
|
, test "current" <|
|
|
\() ->
|
|
Expect.equal (List.Zipper.current zipper) current
|
|
, test "after" <|
|
|
\() -> Expect.equal (List.Zipper.after zipper) after
|
|
]
|