示例#1
0
 /**
  * @dataProvider limits
  */
 public function testCoversAUniformSubsetWhenLimitedToTheNumberOfIterations($limit)
 {
     $size = Size::withTriangleGrowth(1000)->limit($limit);
     $this->assertEquals($limit, count($size));
     $this->assertEquals(0, $size->at(0));
     $this->assertEquals(990, $size->at($limit - 1));
     $this->assertEquals(0, $size->at($limit));
 }