From 7de7a78d8622ae0be03d8ef67549957ab4752dfa Mon Sep 17 00:00:00 2001 From: iamriajul Date: Sun, 7 Mar 2021 07:38:36 +0600 Subject: [PATCH] fix(CalculationMethod): CalculationMethod.egyptian has wrong fajrAngle and ishaAngle https://github.com/batoulapps/adhan-java/pull/29 Closes #8 --- lib/src/calculation_method.dart | 2 +- test/src/calculation_method_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/calculation_method.dart b/lib/src/calculation_method.dart index b565b39..22b122a 100644 --- a/lib/src/calculation_method.dart +++ b/lib/src/calculation_method.dart @@ -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)); } diff --git a/test/src/calculation_method_test.dart b/test/src/calculation_method_test.dart index 2db0475..c1dfc09 100644 --- a/test/src/calculation_method_test.dart +++ b/test/src/calculation_method_test.dart @@ -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);