Skip to content

Commit

Permalink
Decrease stack-safety test size (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble authored and peterneyens committed Jul 7, 2017
1 parent 099e459 commit 8e8c654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class ReaderWriterStateTTests extends CatsSuite {
}

test("Traversing with ReaderWriterState is stack-safe") {
val ns = (0 to 100000).toList
val ns = (0 to 70000).toList
val rws = ns.traverse(_ => addLogUnit(1))

rws.runS("context", 0).value should === (100001)
rws.runS("context", 0).value should === (70001)
}

test("map2 combines logs") {
Expand Down
4 changes: 2 additions & 2 deletions tests/src/test/scala/cats/tests/StateTTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class StateTTests extends CatsSuite {
}

test("traversing state is stack-safe"){
val ns = (0 to 100000).toList
val ns = (0 to 70000).toList
val x = ns.traverse(_ => add1)
x.runS(0).value should === (100001)
x.runS(0).value should === (70001)
}

test("State.pure and StateT.pure are consistent"){
Expand Down

0 comments on commit 8e8c654

Please sign in to comment.