diff options
| author | Di Peng | 2011-08-24 11:00:18 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-30 02:11:08 -0700 |
| commit | 0da4902e9db4f6f494b8be74c41f21d5e5520b79 (patch) | |
| tree | 1118b1268c975bdb339b1e90549cb3222f539bbf /test/service/localeSpec.js | |
| parent | 3ba90003b415542501a0732e09e1271bbd830eff (diff) | |
| download | angular.js-0da4902e9db4f6f494b8be74c41f21d5e5520b79.tar.bz2 | |
feat(locale): add getPluralCat function
Diffstat (limited to 'test/service/localeSpec.js')
| -rw-r--r-- | test/service/localeSpec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/service/localeSpec.js b/test/service/localeSpec.js index 048cf5b5..4be49275 100644 --- a/test/service/localeSpec.js +++ b/test/service/localeSpec.js @@ -36,5 +36,13 @@ describe('$locale', function() { expect(datetime.MONTH.length).toBe(12); expect(datetime.AMPMS.length).toBe(2); }); + + + it('should return correct plural types', function() { + expect($locale.pluralCat(-1)).toBe('other'); + expect($locale.pluralCat(0)).toBe('other'); + expect($locale.pluralCat(2)).toBe('other'); + expect($locale.pluralCat(1)).toBe('one'); + }) }); |
