Pinq\Tests\Integration\Scheme\SetTest::testThatSetCanRemoveAddedElements PHP Method

testThatSetCanRemoveAddedElements() public method

public testThatSetCanRemoveAddedElements ( Pinq\Iterators\ISet $set )
$set Pinq\Iterators\ISet
    public function testThatSetCanRemoveAddedElements(ISet $set)
    {
        $set->add(0);
        $set->add(1);
        $this->assertCount(2, $set);
        $set->remove('0');
        $this->assertCount(2, $set);
        $set->remove(0);
        $this->assertCount(1, $set);
        $set->remove(1);
        $this->assertCount(0, $set);
    }