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 new file mode 100644 index 000000000..67f604b75 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..ebaa4e4ce --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..debc0b87f --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..135d293e7 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..b03b63f19 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..1c778ea95 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..6055bba36 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..61c83b9ce --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..135d293e7 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..0c2e9a635 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..3ee6974d1 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..b4ec4d614 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..91d2b3a25 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap @@ -0,0 +1,82 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..3223f13b3 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..51ac14f11 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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 new file mode 100644 index 000000000..0d78398d4 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_calculate_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap @@ -0,0 +1,82 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap new file mode 100644 index 000000000..67f604b75 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____jhr___18_____jhr___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap new file mode 100644 index 000000000..ebaa4e4ce --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____kdh___19_____kdh___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap new file mode 100644 index 000000000..debc0b87f --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____ktn___19_____ktn___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap new file mode 100644 index 000000000..135d293e7 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____kul___18_____kul___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap new file mode 100644 index 000000000..b03b63f19 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____lbn___19_____lbn___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap new file mode 100644 index 000000000..1c778ea95 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____mlk___18_____mlk___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap new file mode 100644 index 000000000..6055bba36 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____nsn___18_____nsn___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap new file mode 100644 index 000000000..61c83b9ce --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____phg___18_____phg___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap new file mode 100644 index 000000000..135d293e7 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____pjy___18_____pjy___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap new file mode 100644 index 000000000..0c2e9a635 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____pls___18_____pls___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap new file mode 100644 index 000000000..3ee6974d1 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____png___19_____png___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap new file mode 100644 index 000000000..b4ec4d614 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____prk___18_____prk___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap new file mode 100644 index 000000000..91d2b3a25 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____sbh___20_____sbh___20_.snap @@ -0,0 +1,82 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap new file mode 100644 index 000000000..3223f13b3 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____sgr___18_____sgr___18_.snap @@ -0,0 +1,74 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap new file mode 100644 index 000000000..51ac14f11 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____swk___19_____swk___19_.snap @@ -0,0 +1,78 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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_get_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap new file mode 100644 index 000000000..0d78398d4 --- /dev/null +++ b/tests/.pest/snapshots/Countries/MalaysiaTest/it_can_get_total_holidays_by_regions_with_data_set____trg___20_____trg___20_.snap @@ -0,0 +1,82 @@ +[ + { + "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": "Maulidur Rasul", + "date": "2024-09-16" + }, + { + "name": "Hari Malaysia", + "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/Countries/MalaysiaTest.php b/tests/Countries/MalaysiaTest.php index 36c766ff1..775e66c55 100644 --- a/tests/Countries/MalaysiaTest.php +++ b/tests/Countries/MalaysiaTest.php @@ -3,6 +3,8 @@ namespace Spatie\Holidays\Tests\Countries; use Carbon\CarbonImmutable; +use Spatie\Holidays\Countries\Malaysia; +use Spatie\Holidays\Exceptions\InvalidRegion; use Spatie\Holidays\Holidays; it('can calculate Malaysia holidays', function () { @@ -16,3 +18,54 @@ expect(formatDates($holidays))->toMatchSnapshot(); }); + +it('can calculate total holidays by regions', function (string $region, $totalHolidays) { + CarbonImmutable::setTestNowAndTimezone('2024-01-01'); + + $holidays = Holidays::for(Malaysia::make($region))->get(); + + expect($holidays) + ->toBeArray() + ->not()->toBeEmpty(); + + expect(count($holidays))->toBe($totalHolidays); + + expect(formatDates($holidays))->toMatchSnapshot(); +})->with([ + ['jhr', 18], + ['kdh', 19], + ['ktn', 19], + ['kul', 18], + ['lbn', 19], + ['mlk', 18], + ['nsn', 18], + ['phg', 18], + ['png', 19], + ['prk', 18], + ['pls', 18], + ['pjy', 18], + ['sbh', 20], + ['swk', 19], + ['sgr', 18], + ['trg', 20], +]); + +it('can calculate Hari Raya is in year 2023', function () { + CarbonImmutable::setTestNow('2023-01-01'); + + $holiday = Holidays::for('my')->isHoliday('2023-04-22'); + + expect($holiday)->toBeTrue(); +}); + +it('can calculate Tahun Baru Cina in year 2023', function () { + CarbonImmutable::setTestNow('2023-01-01'); + + $holiday = Holidays::for('my')->isHoliday('2023-01-22'); + + expect($holiday)->toBeTrue(); +}); + +it('cannot calculate invalid region', function () { + $holiday = Holidays::for(Malaysia::make('invalid-region'))->get(); +})->throws(InvalidRegion::class);