When a range has finished iteration, `is_empty` returns true, so it should also be the case that `contains` returns false.
all