Skip to content

Commit

Permalink
coverage for Store alias
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-jordan committed Jun 12, 2018
1 parent 538440a commit 3b014ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/test/scala/cats/tests/RepresentableStoreSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ class RepresentableStoreSuite extends CatsSuite {
store.extract should === (store.peek(store.index))
}
}

test("use store alias constructor") {
forAll { (f: String => Int, s: String) =>
val store = Store(f, s)
store.extract should === (f(s))
}
}
}

0 comments on commit 3b014ea

Please sign in to comment.