Skip to content

Commit

Permalink
fix(CalculationMethod): CalculationMethod.egyptian has wrong fajrAngl…
Browse files Browse the repository at this point in the history
…e and ishaAngle

batoulapps/adhan-kotlin#29

Closes #8
  • Loading branch information
iamriajul committed Mar 7, 2021
1 parent 758a71f commit 7de7a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/calculation_method.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ extension CalculationMethodExtensions on CalculationMethod {
case CalculationMethod.egyptian:
{
return CalculationParameters(
fajrAngle: 20.0, ishaAngle: 18.0, method: this)
fajrAngle: 19.5, ishaAngle: 17.5, method: this)
.withMethodAdjustments(PrayerAdjustments(
fajr: 0, sunrise: 0, dhuhr: 1, asr: 0, maghrib: 0, isha: 0));
}
Expand Down
4 changes: 2 additions & 2 deletions test/src/calculation_method_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ void main() {
expect(params.method, CalculationMethod.muslim_world_league);

params = CalculationMethod.egyptian.getParameters();
expect(almostEqualD(params.fajrAngle, 20, 0.000001), isTrue);
expect(almostEqualD(params.ishaAngle, 18, 0.000001), isTrue);
expect(almostEqualD(params.fajrAngle, 19.5, 0.000001), isTrue);
expect(almostEqualD(params.ishaAngle, 17.5, 0.000001), isTrue);
expect(params.ishaInterval, 0);
expect(params.method, CalculationMethod.egyptian);

Expand Down

0 comments on commit 7de7a78

Please sign in to comment.