Skip to content

Commit

Permalink
added new test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder committed May 5, 2022
1 parent 5990bcf commit 9a63697
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tests/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,19 @@ public function testShiaDateTime()

$this->assertTrue($pasoonate->shia()->setDate(1442,7,14)->isFriday());

$this->assertEquals($pasoonate->jalali()->setDate(1400,5,19)->shia()->format('yyyy/MM/dd'), '1443/01/01');

$this->assertEquals($pasoonate->jalali()->setDate(1401,1,14)->shia()->format('yyyy/MM/dd'), '1443/09/01');
$this->assertEquals($pasoonate->jalali()
->setDate(1400,5,19)
->shia()
->format('yyyy/MM/dd'), '1443/01/01');

$this->assertEquals($pasoonate->jalali()
->setDate(1401,1,14)
->shia()
->format('yyyy/MM/dd'), '1443/09/01');

$this->assertEquals($pasoonate->jalali()
->setDate(1401,5,30)
->shia()
->format('yyyy/MM/dd'), '1444/01/23');
}
}

0 comments on commit 9a63697

Please sign in to comment.