()
| 46 | }); |
| 47 | |
| 48 | function srTests() { |
| 49 | it('should return plural cases for the provided locale', () => { |
| 50 | const l10n = TestBed.inject(NgLocalization); |
| 51 | |
| 52 | expect(l10n.getPluralCategory(1)).toEqual('one'); |
| 53 | expect(l10n.getPluralCategory(2.1)).toEqual('one'); |
| 54 | |
| 55 | expect(l10n.getPluralCategory(3)).toEqual('few'); |
| 56 | expect(l10n.getPluralCategory(0.2)).toEqual('few'); |
| 57 | |
| 58 | expect(l10n.getPluralCategory(2.11)).toEqual('other'); |
| 59 | expect(l10n.getPluralCategory(2.12)).toEqual('other'); |
| 60 | }); |
| 61 | } |
| 62 | |
| 63 | describe('sr', () => { |
| 64 | beforeEach(() => { |
no test coverage detected