MathPHP\SetTheory\SetOperationsTest::testClear PHP Method

testClear() public method

public testClear ( array $members )
$members array
    public function testClear(array $members)
    {
        $set = new Set($members);
        $set->clear();
        $this->assertTrue($set->isEmpty());
        $this->assertEmpty($set->asArray());
        $this->assertEquals($set, new Set());
    }