Module talk:Age/testcases

All 42 tests passed.

test_birth_date_and_age

test_birth_date_and_age
Test Expected Actual
checkY {{birth date and age|1990-12-12}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec. 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|Dec 20 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|Dec 20 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|June 2020}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|June 2020|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|June 2020|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|5|10}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|1995|5|10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|1995|5|10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|month=5|day=10}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995|month=5|day=10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995|month=5|day=10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>

test_death_date_and_age

test_death_date_and_age
Test Expected Actual
checkY {{death date and age|1990-12-12|1955-1-5}} December 12, 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35) December 12, 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35)
checkY {{death date and age|12 December 1990|5 January 1955}} 12 December 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35) 12 December 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35)
checkY {{death date and age|3 Oct 2025|5 Dec 1990}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|5 Dec 1990|df=yes}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|5 Dec 1990|mf=yes}} October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990|mf=yes}} October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990|df=yes}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.