Skip to content

Commit

Permalink
Update SolutionTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored Nov 29, 2023
1 parent 40dba01 commit 746154b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/php/g0001_0100/s0001_two_sum/SolutionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

class SolutionTest extends TestCase {
public function testTwoSum() {
$this->assertEquals([0, 1], (new \g0001_0100\s0001_two_sum\Solution())->twoSum([2, 7, 11, 15], 9));
$this->assertEquals([0, 1], (new Solution())->twoSum([2, 7, 11, 15], 9));
}

public function testTwoSum2() {
$this->assertEquals([1, 2], (new \g0001_0100\s0001_two_sum\Solution())->twoSum([3, 2, 4], 6));
$this->assertEquals([1, 2], (new Solution())->twoSum([3, 2, 4], 6));
}

public function testTwoSum3() {
$this->assertEquals([0, 1], (new \g0001_0100\s0001_two_sum\Solution())->twoSum([3, 3], 6));
$this->assertEquals([0, 1], (new Solution())->twoSum([3, 3], 6));
}

public function testTwoSum4() {
$this->assertEquals([-1, -1], (new \g0001_0100\s0001_two_sum\Solution())->twoSum([3, 3], 7));
$this->assertEquals([-1, -1], (new Solution())->twoSum([3, 3], 7));
}
}

0 comments on commit 746154b

Please sign in to comment.