Skip to content

Commit 0d7729d

Browse files
committed
Fix exemplar / tests
1 parent 618b75b commit 0d7729d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/concept/paulas-palindromes/.meta/Exemplar.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Main exposing (Msg(..), init, main, update, view)
1+
module Main exposing (Msg(..), Model, init, main, update, view)
22

33
import Browser
44
import Html exposing (Html, div, input, text)

exercises/concept/paulas-palindromes/tests/Tests.elm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ tests =
1515
[ test "Model is exposed" <|
1616
\_ ->
1717
let
18-
identity : Model -> Model
18+
identity : Main.Model -> Main.Model
1919
identity model =
2020
model
2121
in
2222
Expect.pass
2323
, test "Msg is exposed" <|
2424
\_ ->
2525
let
26-
identity : Msg -> msg
26+
identity : Msg -> Msg
2727
identity msg =
2828
msg
2929
in
@@ -32,7 +32,7 @@ tests =
3232
, describe "2"
3333
[ test "update should change the model content" <|
3434
\_ ->
35-
update (Msg.Change "new content") { content = "" }
35+
update (Main.Change "new content") { content = "" }
3636
|> Expect.equal { content = "new content" }
3737
]
3838
, describe "3"
@@ -52,7 +52,7 @@ tests =
5252
|> Query.fromHtml
5353
|> Query.find [ tag "input" ]
5454
|> Event.simulate (Event.input "cat")
55-
|> Event.expect (Msg.Change "cat")
55+
|> Event.expect (Main.Change "cat")
5656
]
5757
, describe "4"
5858
[ test "init should return a model empty content" <|

0 commit comments

Comments
 (0)