local list, widget
before_each ->
list = List -> {}
list.max_rows_visible = 100
widget = ListWidget list
widget\show!
(when `never_shrink:` is not provided)
shrinks the height while matching
list.matcher = Matcher {'one', 'twö', 'three'}
list\update!
height = widget.height
assert.not_nil height
list\update 'o'
assert.equal height / 3, widget.height
(when `never_shrink: true` is provided)
does not shrink the height while matching
list.matcher = Matcher({'one', 'twö', 'three'})
widget = ListWidget list, never_shrink: true
widget\show!
height = widget.height
assert.not_nil height
list\update 'o'
assert.equal height, widget.height