Skip to content

Ch6 - generalize concrete test Action Multiply (Array Int) #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/chapter6/test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ Note to reader: Delete this line to expand comment block -}
test "act appended" do
Assert.equal (act m1 (act m2 a))
$ act (m1 <> m2) a
test "concrete" do
Assert.equal [ 3, 6, 9 ]
test "act acts on elements" do
Assert.equal (map (act m1) a)
$ act m1 a
suite "Action Multiply (Array String)" do
let
Expand Down