Skip to content

Commit

Permalink
Fix adapter content assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Jun 15, 2024
1 parent d7eedf7 commit ee4d099
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,12 @@ class DragHelperGridTest {
KeyEvents.pressUp(times = 1)

// then
assertFocusAndSelection(position = bottomColumnPosition)
assertFocusAndSelection(position = topColumnPosition)
testAdapter.assertContents { index ->
when {
index < topColumnPosition -> index
index == topColumnPosition -> bottomColumnPosition
index < bottomColumnPosition -> index - 1
index == bottomColumnPosition -> topColumnPosition
index <= bottomColumnPosition -> index - 1
else -> index
}
}
Expand Down

0 comments on commit ee4d099

Please sign in to comment.