mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
parent
161200df44
commit
8aea83703c
5 changed files with 25 additions and 23 deletions
|
|
@ -51,45 +51,44 @@ test('ordinalize filter handles different ordinal suffixes', function (): void {
|
|||
// 1st
|
||||
expect($filter->ordinalize('2025-01-01', '<<ordinal_day>>'))
|
||||
->toBe('1st');
|
||||
|
||||
|
||||
// 2nd
|
||||
expect($filter->ordinalize('2025-01-02', '<<ordinal_day>>'))
|
||||
->toBe('2nd');
|
||||
|
||||
|
||||
// 3rd
|
||||
expect($filter->ordinalize('2025-01-03', '<<ordinal_day>>'))
|
||||
->toBe('3rd');
|
||||
|
||||
|
||||
// 4th
|
||||
expect($filter->ordinalize('2025-01-04', '<<ordinal_day>>'))
|
||||
->toBe('4th');
|
||||
|
||||
|
||||
// 11th (special case)
|
||||
expect($filter->ordinalize('2025-01-11', '<<ordinal_day>>'))
|
||||
->toBe('11th');
|
||||
|
||||
|
||||
// 12th (special case)
|
||||
expect($filter->ordinalize('2025-01-12', '<<ordinal_day>>'))
|
||||
->toBe('12th');
|
||||
|
||||
|
||||
// 13th (special case)
|
||||
expect($filter->ordinalize('2025-01-13', '<<ordinal_day>>'))
|
||||
->toBe('13th');
|
||||
|
||||
|
||||
// 21st
|
||||
expect($filter->ordinalize('2025-01-21', '<<ordinal_day>>'))
|
||||
->toBe('21st');
|
||||
|
||||
|
||||
// 22nd
|
||||
expect($filter->ordinalize('2025-01-22', '<<ordinal_day>>'))
|
||||
->toBe('22nd');
|
||||
|
||||
|
||||
// 23rd
|
||||
expect($filter->ordinalize('2025-01-23', '<<ordinal_day>>'))
|
||||
->toBe('23rd');
|
||||
|
||||
|
||||
// 24th
|
||||
expect($filter->ordinalize('2025-01-24', '<<ordinal_day>>'))
|
||||
->toBe('24th');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue