Skip to content

Commit

Permalink
Update unit tests according to Adobe Premiere
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Feb 12, 2024
1 parent 76e48e6 commit 7b7725f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/formats/SccTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ public function testConvertsDropFrameTimeWithText()

public function testInternalTimeToScc()
{
$actual = SccConverter::internalTimeToScc(3600, 0, 29.97, false);
$this->assertEquals('01:00:00;01', $actual, 0.001);
$actual = SccConverter::internalTimeToScc(1, 20, 29.97, false);
$this->assertEquals('00:00:00;21', $actual, 0.001);
}

public function testInternalTimeToSccTimeWithText()
{
$actual = SccConverter::internalTimeToScc(3600, 30, 29.97, false);
$this->assertEquals('00:59:59;16', $actual, 0.001);
$actual = SccConverter::internalTimeToScc(2, 2, 29.97, false);
$this->assertEquals('00:00:02;00', $actual, 0.001);
}

public function testSpaceBetweenBlocks()
Expand Down

0 comments on commit 7b7725f

Please sign in to comment.