예제 #1
0
 /**
  * @test
  * @param string $input
  * @param int $zeroes
  * @param int $expected * @dataProvider getTestMineAdventCoinTestData
  */
 public function testMineAdventCoin(\string $input, \int $zeroes, \int $expected)
 {
     $result = $this->Day4->mineAdventCoin($input, $zeroes);
     $this->assertEquals($expected, $result);
 }
예제 #2
0
 public function testMineSecretKeypqrstuv()
 {
     $this->day4->setNumberOfZeroes(5);
     $this->day4->setSecretKey('pqrstuv');
     $this->assertEquals(1048970, $this->day4->mine());
 }