public function testThatSetIndexSetsToSourceCollections(\Pinq\ICollection $collection, array $data)
{
$filteredScopeCollection = $collection->where(function ($i) {
return $i % 2 === 0;
});
$slicedScopeCollection = $filteredScopeCollection->slice(1, 2);
$slicedScopeCollection[5] = 100;
$this->assertMatches($slicedScopeCollection, [3 => 4, 5 => 100]);
$this->assertMatches($collection, [1, 2, 3, 4, 5, 100, 7, 8, 9, 10]);
}