PHP 클래스 MathPHP\SetTheory\SetOperationsTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
dataProviderForAdd ( )
dataProviderForAddMulti ( )
dataProviderForCartesianProduct ( )
dataProviderForDifference ( )
dataProviderForDifferenceMultiSet ( )
dataProviderForIntersect ( )
dataProviderForIntersectMultipleSets ( )
dataProviderForIsDisjoint ( )
dataProviderForIsNotSubset ( )
dataProviderForIsProperSet ( )
dataProviderForIsSubsetSuperset ( )
dataProviderForNotDisjoint ( )
dataProviderForPowerSet ( )
dataProviderForRemove ( )
dataProviderForRemoveMulti ( )
dataProviderForSingleSet ( )
dataProviderForSymmetricDifference ( )
dataProviderForUnion ( )
dataProviderForUnionMultipleSets ( )
testAdd ( array $A, $x, array $R )
testAddMulti ( array $A, array $x, array $R )
testAddMultiWithArrayOfArrays ( ) In this case, we add an array that contains arrays.
testAddMultiWithArrayOfArraysMultipleArraysAndDuplicates ( ) In this case, we add an array that contains arrays.
testAddTwiceDoesNothing ( array $A, $x, array $R )
testAddWithDuplicateObjects ( )
testAddWithMultipleObjects ( )
testAddWithObjects ( ) When adding objects to a set, the key becomes to the objects hash.
testAddWithResources ( ) When adding resources to a set, the key becomes to the resource ID.
testCartesianProduct ( array $A, array $B, array $A×B, Set $R )
testClear ( array $members )
testCopy ( array $members )
testDifference ( array $A, array $B, array $diff, Set $R )
testDifferenceMultiSet ( array $A, array $B, array $C, array $diff, Set $R )
testDifferenceWithArrays ( )
testDifferenceWithObjects ( )
testIntersect ( array $A, array $B, array $A∩B, Set $R )
testIntersectMultipleSets ( array $A, array $B, array $C, array $A∩B∩C, Set $R )
testIntersectWithArrays ( )
testIntersectWithObjects ( )
testIsDisjoint ( array $A, array $B )
testIsNotSubset ( array $A, array $B )
testIsProperSubset ( array $A, array $B )
testIsProperSuperset ( array $A, array $B )
testIsSubset ( array $A, array $B )
testIsSuperset ( array $A, array $B )
testNotDisjoint ( array $A, array $B )
testPowerSet ( Set $A, Set $expected )
testRemove ( array $A, $x, array $R )
testRemoveMulti ( array $A, array $x, array $R )
testSymmetricDifference ( array $A, array $B, array $diff, Set $R )
testSymmetricDifferenceWithArrays ( )
testSymmetricDifferenceWithObjects ( )
testUnion ( array $A, array $B, array $A∪B, Set $R )
testUnionMultipleSets ( array $A, array $B, array $C, array $A∪B∪C, Set $R )
testUnionWithArrays ( )
testUnionWithObjects ( )

메소드 상세

dataProviderForAdd() 공개 메소드

public dataProviderForAdd ( )

dataProviderForAddMulti() 공개 메소드

dataProviderForCartesianProduct() 공개 메소드

dataProviderForDifference() 공개 메소드

dataProviderForDifferenceMultiSet() 공개 메소드

dataProviderForIntersect() 공개 메소드

dataProviderForIntersectMultipleSets() 공개 메소드

dataProviderForIsDisjoint() 공개 메소드

dataProviderForIsNotSubset() 공개 메소드

dataProviderForIsProperSet() 공개 메소드

dataProviderForIsSubsetSuperset() 공개 메소드

dataProviderForNotDisjoint() 공개 메소드

dataProviderForPowerSet() 공개 메소드

dataProviderForRemove() 공개 메소드

dataProviderForRemoveMulti() 공개 메소드

dataProviderForSingleSet() 공개 메소드

dataProviderForSymmetricDifference() 공개 메소드

dataProviderForUnion() 공개 메소드

dataProviderForUnionMultipleSets() 공개 메소드

testAdd() 공개 메소드

public testAdd ( array $A, $x, array $R )
$A array
$R array

testAddMulti() 공개 메소드

public testAddMulti ( array $A, array $x, array $R )
$A array
$x array
$R array

testAddMultiWithArrayOfArrays() 공개 메소드

So each array element will be added, but with the implementation detail that they will be converted into ArrayObjects.

testAddMultiWithArrayOfArraysMultipleArraysAndDuplicates() 공개 메소드

So each array element will be added, but with the implementation detail that they will be converted into ArrayObjects.

testAddTwiceDoesNothing() 공개 메소드

public testAddTwiceDoesNothing ( array $A, $x, array $R )
$A array
$R array

testAddWithDuplicateObjects() 공개 메소드

testAddWithMultipleObjects() 공개 메소드

testAddWithObjects() 공개 메소드

The object is stored as is as the value.
public testAddWithObjects ( )

testAddWithResources() 공개 메소드

The resource is stored as is as the value.

testCartesianProduct() 공개 메소드

public testCartesianProduct ( array $A, array $B, array $A×B, Set $R )
$A array
$B array
$A×B array
$R Set

testClear() 공개 메소드

public testClear ( array $members )
$members array

testCopy() 공개 메소드

public testCopy ( array $members )
$members array

testDifference() 공개 메소드

public testDifference ( array $A, array $B, array $diff, Set $R )
$A array
$B array
$diff array
$R Set

testDifferenceMultiSet() 공개 메소드

public testDifferenceMultiSet ( array $A, array $B, array $C, array $diff, Set $R )
$A array
$B array
$C array
$diff array
$R Set

testDifferenceWithArrays() 공개 메소드

testDifferenceWithObjects() 공개 메소드

testIntersect() 공개 메소드

public testIntersect ( array $A, array $B, array $A∩B, Set $R )
$A array
$B array
$A∩B array
$R Set

testIntersectMultipleSets() 공개 메소드

public testIntersectMultipleSets ( array $A, array $B, array $C, array $A∩B∩C, Set $R )
$A array
$B array
$C array
$A∩B∩C array
$R Set

testIntersectWithArrays() 공개 메소드

testIntersectWithObjects() 공개 메소드

testIsDisjoint() 공개 메소드

public testIsDisjoint ( array $A, array $B )
$A array
$B array

testIsNotSubset() 공개 메소드

public testIsNotSubset ( array $A, array $B )
$A array
$B array

testIsProperSubset() 공개 메소드

public testIsProperSubset ( array $A, array $B )
$A array
$B array

testIsProperSuperset() 공개 메소드

public testIsProperSuperset ( array $A, array $B )
$A array
$B array

testIsSubset() 공개 메소드

public testIsSubset ( array $A, array $B )
$A array
$B array

testIsSuperset() 공개 메소드

public testIsSuperset ( array $A, array $B )
$A array
$B array

testNotDisjoint() 공개 메소드

public testNotDisjoint ( array $A, array $B )
$A array
$B array

testPowerSet() 공개 메소드

public testPowerSet ( Set $A, Set $expected )
$A Set
$expected Set

testRemove() 공개 메소드

public testRemove ( array $A, $x, array $R )
$A array
$R array

testRemoveMulti() 공개 메소드

public testRemoveMulti ( array $A, array $x, array $R )
$A array
$x array
$R array

testSymmetricDifference() 공개 메소드

public testSymmetricDifference ( array $A, array $B, array $diff, Set $R )
$A array
$B array
$diff array
$R Set

testSymmetricDifferenceWithArrays() 공개 메소드

testSymmetricDifferenceWithObjects() 공개 메소드

testUnion() 공개 메소드

public testUnion ( array $A, array $B, array $A∪B, Set $R )
$A array
$B array
$A∪B array
$R Set

testUnionMultipleSets() 공개 메소드

public testUnionMultipleSets ( array $A, array $B, array $C, array $A∪B∪C, Set $R )
$A array
$B array
$C array
$A∪B∪C array
$R Set

testUnionWithArrays() 공개 메소드

public testUnionWithArrays ( )

testUnionWithObjects() 공개 메소드