CartesianProductTest

7

tests

0

failures

0

ignored

0.075s

duration

100%

successful

Tests

Test Method name Duration Result
Count equals product of dimensions (dims = [3,4,2]) count_matchesProduct() 0s passed
Returned arrays are defensive copies defensiveCopies() 0.001s passed
Iterator respects hasNext()/next() and throws on exhaustion iteratorContract() 0.001s passed
Negative dimension throws IllegalArgumentException negativeDimensionThrows() 0.002s passed
No dimensions => one empty tuple [] noDimensions_yieldsEmptyTuple() 0.068s passed
Rightmost coordinate varies fastest (dims = [2,3]) order_rightmostFastest() 0.003s passed
Any zero dimension => empty product (dims = [3,0,2]) zeroDimension_empty() 0s passed