From c519d765204419126956ca73b4fe867f435e1d06 Mon Sep 17 00:00:00 2001 From: Anichur Rahaman <38912435+anisAronno@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:29:05 +0600 Subject: [PATCH] feat: Update Bangladesh holiday calculations - Added new holidays to the Bangladesh holiday calculations. - Synced holiday calculations with Hijri and Bangla calendars. - Handles holiday calculations for Bangladesh including: * Islamic holidays (using Hijri calendar) * Hindu festivals (using lunar calendar) * Buddhist festivals (using lunar calendar) * National holidays (using Gregorian calendar) --- lang/bangladesh/bn/holidays.json | 33 ++- src/Calendars/BangladeshiCalander.php | 261 ++++++++++++++++++ src/Countries/Bangladesh.php | 117 +++++++- .../it_can_calculate_bangladesh_holidays.snap | 92 +++++- ...lculate_bangladesh_holidays_in_Bangla.snap | 104 ++++++- ...culate_bangladesh_holidays_in_English.snap | 92 +++++- ...late__bosnia_and_herzegovina_holidays.snap | 34 --- ...th_data_set____jhr___18_____jhr___18_.snap | 74 ----- ...th_data_set____kdh___19_____kdh___19_.snap | 78 ------ ...th_data_set____ktn___19_____ktn___19_.snap | 78 ------ ...th_data_set____kul___18_____kul___18_.snap | 74 ----- ...th_data_set____lbn___19_____lbn___19_.snap | 78 ------ ...th_data_set____mlk___18_____mlk___18_.snap | 74 ----- ...th_data_set____nsn___18_____nsn___18_.snap | 74 ----- ...th_data_set____phg___18_____phg___18_.snap | 74 ----- ...th_data_set____pjy___18_____pjy___18_.snap | 74 ----- ...th_data_set____pls___18_____pls___18_.snap | 74 ----- ...th_data_set____png___19_____png___19_.snap | 78 ------ ...th_data_set____prk___18_____prk___18_.snap | 74 ----- ...th_data_set____sbh___20_____sbh___20_.snap | 82 ------ ...th_data_set____sgr___18_____sgr___18_.snap | 74 ----- ...th_data_set____swk___19_____swk___19_.snap | 78 ------ ...th_data_set____trg___20_____trg___20_.snap | 82 ------ 23 files changed, 660 insertions(+), 1293 deletions(-) create mode 100644 src/Calendars/BangladeshiCalander.php delete mode 100644 tests/.pest/snapshots/Countries/BosniaAndHerzegovinaTest/it_can_calculate__bosnia_and_herzegovina_holidays.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap delete mode 100644 tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap diff --git a/lang/bangladesh/bn/holidays.json b/lang/bangladesh/bn/holidays.json index 069f2d940..d14d53210 100644 --- a/lang/bangladesh/bn/holidays.json +++ b/lang/bangladesh/bn/holidays.json @@ -1,10 +1,25 @@ { - "International Mother Language Day": "Antorjatik Matribhasha Dibos", - "Birthday of Sheikh Mujibur Rahman": "Shekh Mujibur Rahmaner Jonmodin", - "Independence Day": "Swadhinota Dibos", - "Bengali New Year": "Bangla Noboborsho", - "May Day": "Antorjatik Shrom Dibos", - "National Mourning Day": "Jatiyo Shok Dibos", - "Victory Day": "Bijoy Dibos", - "Christmas Day": "Borodin" -} + "International Mother Language Day": "শহীদ দিবস", + "Independence Day": "স্বাধীনতা দিবস", + "May Day": "মে দিবস", + "National Mourning Day": "জাতীয় শোক দিবস", + "Victory Day": "বিজয় দিবস", + "Christmas Day": "বড়দিন", + "Shab-e-Barat": "শবে বরাত", + "Shab-e-Qadr": "শবে কদর", + "Shab-e-Meraj": "শবে মেরাজ", + "Eid ul-Fitr": "ঈদ-উল-ফিতর", + "Eid ul-Fitr Eve": "ঈদ-উল-ফিতরের আগের দিন", + "Eid ul-Fitr Holiday": "ঈদ-উল-ফিতরের ছুটি", + "Eid ul-Adha": "ঈদ-উল-আযহা", + "Eid ul-Adha Eve": "ঈদ-উল-আযহার আগের দিন", + "Eid ul-Adha Holiday": "ঈদ-উল-আযহার ছুটি", + "Ashura": "আশুরা", + "Eid-e-Miladunnabi": "ঈদে মিলাদুন্নবী", + "Pohela Boishakh": "পহেলা বৈশাখ", + "Buddha Purnima": "বুদ্ধ পূর্ণিমা", + "Jonmashtomi": "জন্মাষ্টমী", + "Durga Puja": "দুর্গা পূজা", + "Birthday of Sheikh Mujibur Rahman": "শেখ মুজিবুর রহমানের জন্মদিন", + "Bengali New Year": "বাংলা নববর্ষ" +} \ No newline at end of file diff --git a/src/Calendars/BangladeshiCalander.php b/src/Calendars/BangladeshiCalander.php new file mode 100644 index 000000000..9c64cf6a9 --- /dev/null +++ b/src/Calendars/BangladeshiCalander.php @@ -0,0 +1,261 @@ + */ + protected function shabEBarat(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['SHABAN'], + day: '15', + year: $year + ); + } + + /** @return array */ + protected function shabEQadr(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['RAMADAN'], + day: '27', + year: $year + ); + } + + /** @return array */ + protected function eidUlFitr(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['SHAWWAL'], + day: '01', + year: $year, + daysBeforeAfter: [2, 2] // 2 days before and 2 days after + ); + } + + /** @return array */ + protected function eidUlAdha(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['DHU_AL_HIJJAH'], + day: '10', + year: $year, + daysBeforeAfter: [2, 3] // 2 days before and 3 days after + ); + } + + /** @return array */ + protected function eideMiladunnabi(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['RABI_AL_AWWAL'], + day: '12', + year: $year + ); + } + + /** @return array */ + protected function ashura(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['MUHARRAM'], + day: '10', + year: $year + ); + } + + /** @return array */ + protected function shabEMeraj(int $year): array + { + return $this->getIslamicHoliday( + month: self::ISLAMIC_MONTHS['RAJAB'], + day: '27', + year: $year + ); + } + + /* + |-------------------------------------------------------------------------- + | Bengali Calendar Holiday Calculations + |-------------------------------------------------------------------------- + */ + + /** @return array */ + protected function pohela_boishakh(int $year): array + { + // Bengali New Year is typically April 14 + // Handles leap year adjustments + $date = CarbonImmutable::create($year, 4, 14); + if ($date->isLeapYear() && $date->month > 2) { + $date = $date->addDay(); + } + + return [$this->createPeriod($date->format('m-d'), $year, 1)]; + } + + /* + |-------------------------------------------------------------------------- + | Hindu and Buddhist Holiday Calculations + |-------------------------------------------------------------------------- + */ + + /** @return array */ + protected function buddhaPurnima(int $year): array + { + // Calculate first full moon day of May + $baseDate = CarbonImmutable::create($year, 5, 1); + $fullMoonDate = $this->findNearestFullMoon($baseDate); + + return [$this->createPeriod($fullMoonDate->format('m-d'), $year, 1)]; + } + + /** @return array */ + protected function jonmashtomi(int $year): array + { + // Krishna Janmashtami falls on the eighth day of the dark fortnight + $baseDate = CarbonImmutable::create($year, 8, 15); + $ashtamiDate = $this->calculateAshtamiDate($baseDate); + + return [$this->createPeriod($ashtamiDate->format('m-d'), $year, 1)]; + } + + /** @return array */ + protected function durgaPuja(int $year): array + { + // Durga Puja's main days (Ashtami and Navami) + $baseDate = CarbonImmutable::create($year, 10, 15); + $ashtamiDate = $this->calculateAshtamiDate($baseDate); + + return [$this->createPeriod($ashtamiDate->format('m-d'), $year, 2)]; + } + + /* + |-------------------------------------------------------------------------- + | Helper Methods + |-------------------------------------------------------------------------- + */ + + /** + * Helper method to calculate Islamic holiday dates + * + * @param string $month Islamic month number + * @param string $day Day of the month + * @param int $year Gregorian year + * @param array $daysBeforeAfter [daysBefore, daysAfter] + * @return array + */ + private function getIslamicHoliday( + string $month, + string $day, + int $year, + array $daysBeforeAfter = [0, 0] + ): array { + $date = $this->islamicToGregorianDate("$month-$day", $year); + + if (!empty($daysBeforeAfter)) { + $date = $date->subDays($daysBeforeAfter[0]); + $totalDays = 1 + $daysBeforeAfter[0] + $daysBeforeAfter[1]; + } else { + $totalDays = 1; + } + + return [$this->createPeriod($date->format('m-d'), $year, $totalDays)]; + } + + /** + * Calculate lunar phase (0 = new moon, 0.5 = full moon) + */ + private function getLunarPhase(CarbonImmutable $date): float + { + $year = $date->year; + $month = $date->month; + $day = $date->day; + + $c = $date->getPreciseTimestamp() / 86400; + $e = $c - 2451550.1; + $phase = $e / 29.530588853; + + return $phase - floor($phase); + } + + /** + * Find the nearest full moon to a given date + */ + private function findNearestFullMoon(CarbonImmutable $targetDate): CarbonImmutable + { + $date = $targetDate->copy(); + $closestDate = $date; + $closestDiff = 1; + + // Check 15 days before and after + for ($i = -15; $i <= 15; $i++) { + $checkDate = $date->addDays($i); + $phase = $this->getLunarPhase($checkDate); + $diff = abs($phase - 0.5); + + if ($diff < $closestDiff) { + $closestDiff = $diff; + $closestDate = $checkDate; + } + } + + return $closestDate; + } + + /** + * Calculate Ashtami (eighth day) date for Hindu festivals + */ + private function calculateAshtamiDate(CarbonImmutable $baseDate): CarbonImmutable + { + $newMoon = $this->findNearestNewMoon($baseDate); + return $newMoon->addDays(8); + } + + /** + * Find the nearest new moon to a given date + */ + private function findNearestNewMoon(CarbonImmutable $date): CarbonImmutable + { + $closestDate = $date; + $closestDiff = 1; + + for ($i = -15; $i <= 15; $i++) { + $checkDate = $date->addDays($i); + $phase = $this->getLunarPhase($checkDate); + $diff = min($phase, 1 - $phase); + + if ($diff < $closestDiff) { + $closestDiff = $diff; + $closestDate = $checkDate; + } + } + + return $closestDate; + } +} \ No newline at end of file diff --git a/src/Countries/Bangladesh.php b/src/Countries/Bangladesh.php index a11c99074..72110399c 100644 --- a/src/Countries/Bangladesh.php +++ b/src/Countries/Bangladesh.php @@ -3,12 +3,64 @@ namespace Spatie\Holidays\Countries; use Carbon\CarbonImmutable; +use Spatie\Holidays\Calendars\BangladeshiCalander; use Spatie\Holidays\Concerns\Translatable; use Spatie\Holidays\Contracts\HasTranslations; class Bangladesh extends Country implements HasTranslations { use Translatable; + use BangladeshiCalander; + + protected string $timezone = 'Asia/Dhaka'; + + /** + * Islamic month numbers for reference + */ + private const ISLAMIC_MONTHS = [ + 'MUHARRAM' => '01', + 'SAFAR' => '02', + 'RABI_AL_AWWAL' => '03', + 'RABI_AL_THANI' => '04', + 'JUMADA_AL_AWWAL' => '05', + 'JUMADA_AL_THANI' => '06', + 'RAJAB' => '07', + 'SHABAN' => '08', + 'RAMADAN' => '09', + 'SHAWWAL' => '10', + 'DHU_AL_QADAH' => '11', + 'DHU_AL_HIJJAH' => '12', + ]; + + /** + * Bengali calendar months + */ + private const BENGALI_MONTHS = [ + 'BOISHAKH' => 1, // বৈশাখ + 'JYOISHTHO' => 2, // জ্যৈষ্ঠ + 'ASHAR' => 3, // আষাঢ় + 'SHRABON' => 4, // শ্রাবণ + 'BHADRO' => 5, // ভাদ্র + 'ASHWIN' => 6, // আশ্বিন + 'KARTIK' => 7, // কার্তিক + 'OGROHAYON' => 8, // অগ্রহায়ণ + 'POUSH' => 9, // পৌষ + 'MAGH' => 10, // মাঘ + 'FALGUN' => 11, // ফাল্গুন + 'CHOITRO' => 12, // চৈত্র + ]; + + /** + * Fixed national holidays + */ + private const NATIONAL_HOLIDAYS = [ + 'International Mother Language Day' => '02-21', // শহীদ দিবস + 'Independence Day' => '03-26', // স্বাধীনতা দিবস + 'May Day' => '05-01', // মে দিবস + 'National Mourning Day' => '08-15', // জাতীয় শোক দিবস + 'Victory Day' => '12-16', // বিজয় দিবস + 'Christmas Day' => '12-25', // বড়দিন + ]; public function countryCode(): string { @@ -22,22 +74,63 @@ public function defaultLocale(): string protected function allHolidays(int $year): array { - return array_merge([ - 'International Mother Language Day' => '02-21', - 'Birthday of Sheikh Mujibur Rahman' => '03-17', - 'Independence Day' => '03-26', - 'Bengali New Year' => '04-14', - 'May Day' => '05-01', - 'National Mourning Day' => '08-15', - 'Victory Day' => '12-16', - 'Christmas Day' => '12-25', - ], $this->variableHolidays($year)); + return array_merge( + self::NATIONAL_HOLIDAYS, + $this->variableHolidays($year) + ); } /** @return array */ protected function variableHolidays(int $year): array { - // The variable holidays all follow the lunar calendar, so their dates are not confirmed. - return []; + return array_merge( + $this->getIslamicHolidays($year), + $this->getBengaliHolidays($year), + $this->getHinduBuddhistHolidays($year) + ); + } + + /** + * Get all Islamic holidays for the year + * + * @return array + */ + private function getIslamicHolidays(int $year): array + { + return array_merge( + $this->convertPeriods('Shab-e-Barat', $year, $this->shabEBarat($year)[0]), + $this->convertPeriods('Shab-e-Qadr', $year, $this->shabEQadr($year)[0]), + $this->convertPeriods('Eid ul-Fitr', $year, $this->eidUlFitr($year)[0], includeEve: true), + $this->convertPeriods('Eid ul-Adha', $year, $this->eidUlAdha($year)[0], includeEve: true), + $this->convertPeriods('Eid-e-Miladunnabi', $year, $this->eideMiladunnabi($year)[0]), + $this->convertPeriods('Ashura', $year, $this->ashura($year)[0]), + $this->convertPeriods('Shab-e-Meraj', $year, $this->shabEMeraj($year)[0]) + ); + } + + /** + * Get all Bengali calendar holidays for the year + * + * @return array + */ + private function getBengaliHolidays(int $year): array + { + return array_merge( + $this->convertPeriods('Pohela Boishakh', $year, $this->pohela_boishakh($year)[0]) + ); + } + + /** + * Get all Hindu and Buddhist holidays for the year + * + * @return array + */ + private function getHinduBuddhistHolidays(int $year): array + { + return array_merge( + $this->convertPeriods('Buddha Purnima', $year, $this->buddhaPurnima($year)[0]), + $this->convertPeriods('Jonmashtomi', $year, $this->jonmashtomi($year)[0]), + $this->convertPeriods('Durga Puja', $year, $this->durgaPuja($year)[0]) + ); } } diff --git a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays.snap b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays.snap index f5a0e91db..1d364e606 100644 --- a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays.snap +++ b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays.snap @@ -1,28 +1,112 @@ [ + { + "name": "Shab-e-Meraj", + "date": "2024-02-07" + }, { "name": "International Mother Language Day", "date": "2024-02-21" }, { - "name": "Birthday of Sheikh Mujibur Rahman", - "date": "2024-03-17" + "name": "Shab-e-Barat", + "date": "2024-02-25" }, { "name": "Independence Day", "date": "2024-03-26" }, { - "name": "Bengali New Year", - "date": "2024-04-14" + "name": "Shab-e-Qadr", + "date": "2024-04-06" + }, + { + "name": "Eid ul-Fitr Eve", + "date": "2024-04-07" + }, + { + "name": "Eid ul-Fitr", + "date": "2024-04-08" + }, + { + "name": "Eid ul-Fitr Day 2", + "date": "2024-04-09" + }, + { + "name": "Eid ul-Fitr Day 3", + "date": "2024-04-10" + }, + { + "name": "Eid ul-Fitr Day 4", + "date": "2024-04-11" + }, + { + "name": "Eid ul-Fitr Day 5", + "date": "2024-04-12" + }, + { + "name": "Pohela Boishakh", + "date": "2024-04-15" + }, + { + "name": "Buddha Purnima", + "date": "2024-04-20" }, { "name": "May Day", "date": "2024-05-01" }, + { + "name": "Eid ul-Adha Eve", + "date": "2024-06-14" + }, + { + "name": "Eid ul-Adha", + "date": "2024-06-15" + }, + { + "name": "Eid ul-Adha Day 2", + "date": "2024-06-16" + }, + { + "name": "Eid ul-Adha Day 3", + "date": "2024-06-17" + }, + { + "name": "Eid ul-Adha Day 4", + "date": "2024-06-18" + }, + { + "name": "Eid ul-Adha Day 5", + "date": "2024-06-19" + }, + { + "name": "Eid ul-Adha Day 6", + "date": "2024-06-20" + }, + { + "name": "Ashura", + "date": "2024-07-28" + }, { "name": "National Mourning Day", "date": "2024-08-15" }, + { + "name": "Jonmashtomi", + "date": "2024-08-18" + }, + { + "name": "Eid-e-Miladunnabi", + "date": "2024-09-27" + }, + { + "name": "Durga Puja", + "date": "2024-10-30" + }, + { + "name": "Durga Puja Day 2", + "date": "2024-10-31" + }, { "name": "Victory Day", "date": "2024-12-16" diff --git a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_Bangla.snap b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_Bangla.snap index 285dbbc3c..33c8cc161 100644 --- a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_Bangla.snap +++ b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_Bangla.snap @@ -1,34 +1,118 @@ [ { - "name": "Antorjatik Matribhasha Dibos", + "name": "\u09b6\u09ac\u09c7 \u09ae\u09c7\u09b0\u09be\u099c", + "date": "2024-02-07" + }, + { + "name": "\u09b6\u09b9\u09c0\u09a6 \u09a6\u09bf\u09ac\u09b8", "date": "2024-02-21" }, { - "name": "Shekh Mujibur Rahmaner Jonmodin", - "date": "2024-03-17" + "name": "\u09b6\u09ac\u09c7 \u09ac\u09b0\u09be\u09a4", + "date": "2024-02-25" }, { - "name": "Swadhinota Dibos", + "name": "\u09b8\u09cd\u09ac\u09be\u09a7\u09c0\u09a8\u09a4\u09be \u09a6\u09bf\u09ac\u09b8", "date": "2024-03-26" }, { - "name": "Bangla Noboborsho", - "date": "2024-04-14" + "name": "\u09b6\u09ac\u09c7 \u0995\u09a6\u09b0", + "date": "2024-04-06" + }, + { + "name": "\u0988\u09a6-\u0989\u09b2-\u09ab\u09bf\u09a4\u09b0\u09c7\u09b0 \u0986\u0997\u09c7\u09b0 \u09a6\u09bf\u09a8", + "date": "2024-04-07" + }, + { + "name": "\u0988\u09a6-\u0989\u09b2-\u09ab\u09bf\u09a4\u09b0", + "date": "2024-04-08" }, { - "name": "Antorjatik Shrom Dibos", + "name": "Eid ul-Fitr Day 2", + "date": "2024-04-09" + }, + { + "name": "Eid ul-Fitr Day 3", + "date": "2024-04-10" + }, + { + "name": "Eid ul-Fitr Day 4", + "date": "2024-04-11" + }, + { + "name": "Eid ul-Fitr Day 5", + "date": "2024-04-12" + }, + { + "name": "\u09aa\u09b9\u09c7\u09b2\u09be \u09ac\u09c8\u09b6\u09be\u0996", + "date": "2024-04-15" + }, + { + "name": "\u09ac\u09c1\u09a6\u09cd\u09a7 \u09aa\u09c2\u09b0\u09cd\u09a3\u09bf\u09ae\u09be", + "date": "2024-04-20" + }, + { + "name": "\u09ae\u09c7 \u09a6\u09bf\u09ac\u09b8", "date": "2024-05-01" }, { - "name": "Jatiyo Shok Dibos", + "name": "\u0988\u09a6-\u0989\u09b2-\u0986\u09af\u09b9\u09be\u09b0 \u0986\u0997\u09c7\u09b0 \u09a6\u09bf\u09a8", + "date": "2024-06-14" + }, + { + "name": "\u0988\u09a6-\u0989\u09b2-\u0986\u09af\u09b9\u09be", + "date": "2024-06-15" + }, + { + "name": "Eid ul-Adha Day 2", + "date": "2024-06-16" + }, + { + "name": "Eid ul-Adha Day 3", + "date": "2024-06-17" + }, + { + "name": "Eid ul-Adha Day 4", + "date": "2024-06-18" + }, + { + "name": "Eid ul-Adha Day 5", + "date": "2024-06-19" + }, + { + "name": "Eid ul-Adha Day 6", + "date": "2024-06-20" + }, + { + "name": "\u0986\u09b6\u09c1\u09b0\u09be", + "date": "2024-07-28" + }, + { + "name": "\u099c\u09be\u09a4\u09c0\u09af\u09bc \u09b6\u09cb\u0995 \u09a6\u09bf\u09ac\u09b8", "date": "2024-08-15" }, { - "name": "Bijoy Dibos", + "name": "\u099c\u09a8\u09cd\u09ae\u09be\u09b7\u09cd\u099f\u09ae\u09c0", + "date": "2024-08-18" + }, + { + "name": "\u0988\u09a6\u09c7 \u09ae\u09bf\u09b2\u09be\u09a6\u09c1\u09a8\u09cd\u09a8\u09ac\u09c0", + "date": "2024-09-27" + }, + { + "name": "\u09a6\u09c1\u09b0\u09cd\u0997\u09be \u09aa\u09c2\u099c\u09be", + "date": "2024-10-30" + }, + { + "name": "Durga Puja Day 2", + "date": "2024-10-31" + }, + { + "name": "\u09ac\u09bf\u099c\u09af\u09bc \u09a6\u09bf\u09ac\u09b8", "date": "2024-12-16" }, { - "name": "Borodin", + "name": "\u09ac\u09a1\u09bc\u09a6\u09bf\u09a8", "date": "2024-12-25" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_English.snap b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_English.snap index f5a0e91db..1d364e606 100644 --- a/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_English.snap +++ b/tests/.pest/snapshots/Countries/BangladeshTest/it_can_calculate_bangladesh_holidays_in_English.snap @@ -1,28 +1,112 @@ [ + { + "name": "Shab-e-Meraj", + "date": "2024-02-07" + }, { "name": "International Mother Language Day", "date": "2024-02-21" }, { - "name": "Birthday of Sheikh Mujibur Rahman", - "date": "2024-03-17" + "name": "Shab-e-Barat", + "date": "2024-02-25" }, { "name": "Independence Day", "date": "2024-03-26" }, { - "name": "Bengali New Year", - "date": "2024-04-14" + "name": "Shab-e-Qadr", + "date": "2024-04-06" + }, + { + "name": "Eid ul-Fitr Eve", + "date": "2024-04-07" + }, + { + "name": "Eid ul-Fitr", + "date": "2024-04-08" + }, + { + "name": "Eid ul-Fitr Day 2", + "date": "2024-04-09" + }, + { + "name": "Eid ul-Fitr Day 3", + "date": "2024-04-10" + }, + { + "name": "Eid ul-Fitr Day 4", + "date": "2024-04-11" + }, + { + "name": "Eid ul-Fitr Day 5", + "date": "2024-04-12" + }, + { + "name": "Pohela Boishakh", + "date": "2024-04-15" + }, + { + "name": "Buddha Purnima", + "date": "2024-04-20" }, { "name": "May Day", "date": "2024-05-01" }, + { + "name": "Eid ul-Adha Eve", + "date": "2024-06-14" + }, + { + "name": "Eid ul-Adha", + "date": "2024-06-15" + }, + { + "name": "Eid ul-Adha Day 2", + "date": "2024-06-16" + }, + { + "name": "Eid ul-Adha Day 3", + "date": "2024-06-17" + }, + { + "name": "Eid ul-Adha Day 4", + "date": "2024-06-18" + }, + { + "name": "Eid ul-Adha Day 5", + "date": "2024-06-19" + }, + { + "name": "Eid ul-Adha Day 6", + "date": "2024-06-20" + }, + { + "name": "Ashura", + "date": "2024-07-28" + }, { "name": "National Mourning Day", "date": "2024-08-15" }, + { + "name": "Jonmashtomi", + "date": "2024-08-18" + }, + { + "name": "Eid-e-Miladunnabi", + "date": "2024-09-27" + }, + { + "name": "Durga Puja", + "date": "2024-10-30" + }, + { + "name": "Durga Puja Day 2", + "date": "2024-10-31" + }, { "name": "Victory Day", "date": "2024-12-16" diff --git a/tests/.pest/snapshots/Countries/BosniaAndHerzegovinaTest/it_can_calculate__bosnia_and_herzegovina_holidays.snap b/tests/.pest/snapshots/Countries/BosniaAndHerzegovinaTest/it_can_calculate__bosnia_and_herzegovina_holidays.snap deleted file mode 100644 index c0cde7eb9..000000000 --- a/tests/.pest/snapshots/Countries/BosniaAndHerzegovinaTest/it_can_calculate__bosnia_and_herzegovina_holidays.snap +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "name": "Nova godina - prvi dan", - "date": "2024-01-01" - }, - { - "name": "Nova godina - drugi dan", - "date": "2024-01-02" - }, - { - "name": "Badnji dan (za pravoslavce)", - "date": "2024-01-06" - }, - { - "name": "Bo\u017ei\u0107 (za pravoslavce)", - "date": "2024-01-07" - }, - { - "name": "Praznik rada - prvi dan", - "date": "2024-05-01" - }, - { - "name": "Praznik rada - drugi dan", - "date": "2024-05-02" - }, - { - "name": "Badnji dan (za rimokatolike)", - "date": "2024-12-24" - }, - { - "name": "Bo\u017ei\u0107 (za rimokatolike)", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap deleted file mode 100644 index c074f8649..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Awal Ramadan", - "date": "2024-03-11" - }, - { - "name": "Hari Keputeraan Sultan Johor", - "date": "2024-03-23" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Hol Johor", - "date": "2024-08-11" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap deleted file mode 100644 index ac9344582..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Israk dan Mikraj", - "date": "2024-02-07" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Awal Ramadan", - "date": "2024-03-11" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Keputeraan Sultan Kedah", - "date": "2024-06-16" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Hari Raya Aidiladha Hari Kedua", - "date": "2024-06-18" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap deleted file mode 100644 index 1ec56d1e4..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Arafah", - "date": "2024-06-16" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Hari Raya Aidiladha Hari Kedua", - "date": "2024-06-18" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Sultan Kelantan", - "date": "2024-09-29" - }, - { - "name": "Hari Keputeraan Sultan Kelantan Hari Kedua", - "date": "2024-09-30" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap deleted file mode 100644 index 5d46c6579..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Hari Wilayah Persekutuan", - "date": "2024-02-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap deleted file mode 100644 index 451be4205..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Hari Wilayah Persekutuan", - "date": "2024-02-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Pesta Kaamatan", - "date": "2024-05-30" - }, - { - "name": "Pesta Kaamatan Hari Kedua", - "date": "2024-05-31" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap deleted file mode 100644 index 95481d83a..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Awal Ramadan", - "date": "2024-03-11" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Perisytiharan Melaka Sebagai Bandaraya Bersejarah", - "date": "2024-04-15" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Harijadi Yang di-Pertua Negeri Melaka", - "date": "2024-08-24" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap deleted file mode 100644 index 58466ece3..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Besar Negeri Sembilan", - "date": "2024-01-14" - }, - { - "name": "Israk dan Mikraj", - "date": "2024-02-07" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap deleted file mode 100644 index 8113ddb81..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Hol Pahang", - "date": "2024-05-22" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Keputeraan Sultan Pahang", - "date": "2024-07-30" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap deleted file mode 100644 index 5d46c6579..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Hari Wilayah Persekutuan", - "date": "2024-02-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap deleted file mode 100644 index edac07a13..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Israk dan Mikraj", - "date": "2024-02-07" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Keputeraan Raja Perlis", - "date": "2024-05-17" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Hari Raya Aidiladha Hari Kedua", - "date": "2024-06-18" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap deleted file mode 100644 index 5e9afe375..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Hari Bandar Warisan Dunia Georgetown", - "date": "2024-07-07" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Harijadi Yang di-Pertua Negeri Pulau Pinang", - "date": "2024-07-13" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap deleted file mode 100644 index 08a427c6d..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Keputeraan Sultan Perak", - "date": "2024-11-01" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap deleted file mode 100644 index 2c13e1b00..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap +++ /dev/null @@ -1,82 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Good Friday", - "date": "2024-03-29" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Pesta Kaamatan", - "date": "2024-05-30" - }, - { - "name": "Pesta Kaamatan Hari Kedua", - "date": "2024-05-31" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Harijadi Yang di-Pertua Negeri Sabah", - "date": "2024-10-05" - }, - { - "name": "Hari Natal", - "date": "2024-12-24" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap deleted file mode 100644 index cbcd01511..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Hari Thaipusam", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Keputeraan Sultan Selangor", - "date": "2024-12-11" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap deleted file mode 100644 index 04678ca20..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru", - "date": "2024-01-01" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Good Friday", - "date": "2024-03-29" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Gawai", - "date": "2024-06-01" - }, - { - "name": "Hari Gawai Kedua", - "date": "2024-06-02" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Sarawak", - "date": "2024-07-22" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Harijadi Yang di-Pertua Negeri Sarawak", - "date": "2024-10-12" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap deleted file mode 100644 index 1d774b431..000000000 --- a/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap +++ /dev/null @@ -1,82 +0,0 @@ -[ - { - "name": "Hari Wesak", - "date": "2024-01-01" - }, - { - "name": "Hari Deepavali", - "date": "2024-01-01" - }, - { - "name": "Israk dan Mikraj", - "date": "2024-02-07" - }, - { - "name": "Tahun Baru Cina", - "date": "2024-02-10" - }, - { - "name": "Tahun Baru Cina Hari Kedua", - "date": "2024-02-11" - }, - { - "name": "Hari Ulang Tahun Pertabalan Sultan Terengganu", - "date": "2024-03-04" - }, - { - "name": "Hari Nurul Al-Quran", - "date": "2024-03-27" - }, - { - "name": "Hari Raya Aidilfitri", - "date": "2024-04-10" - }, - { - "name": "Hari Raya Aidilfitri Hari Kedua", - "date": "2024-04-11" - }, - { - "name": "Hari Keputeraan Sultan Terengganu", - "date": "2024-04-26" - }, - { - "name": "Hari Pekerja", - "date": "2024-05-01" - }, - { - "name": "Hari Arafah", - "date": "2024-06-16" - }, - { - "name": "Hari Raya Aidiladha", - "date": "2024-06-17" - }, - { - "name": "Hari Raya Aidiladha Hari Kedua", - "date": "2024-06-18" - }, - { - "name": "Awal Muharram", - "date": "2024-07-08" - }, - { - "name": "Hari Kebangsaan", - "date": "2024-08-31" - }, - { - "name": "Hari Malaysia", - "date": "2024-09-16" - }, - { - "name": "Maulidur Rasul", - "date": "2024-09-16" - }, - { - "name": "Hari Keputeraan Yang Di-Pertuan Agong", - "date": "2024-10-05" - }, - { - "name": "Hari Krismas", - "date": "2024-12-25" - } -] \ No newline at end of file