Sha256: df35c54881f0687b0936140903c33080e2069e731cc219016a56b3734d78f18f
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
// Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 var TwitterCldr = require('../../../../lib/assets/javascripts/twitter_cldr/ru.js'); describe("LongDecimalFormatter", function() { beforeEach(function() { formatter = new TwitterCldr.LongDecimalFormatter(); }); describe("#format", function() { it("uses correct pluralization for abbreviated numbers", function() { expect(formatter.format(1000)).toEqual("1 тысяча"); expect(formatter.format(2222)).toEqual("2 тысячи"); expect(formatter.format(5000)).toEqual("5 тысяч"); expect(formatter.format(1200000, { precision: 0 })).toEqual("1 миллион"); expect(formatter.format(1200000, { precision: 1 })).toEqual("1,2 миллиона"); expect(formatter.format(3000000)).toEqual("3 миллиона"); expect(formatter.format(3456000, { precision: 2 })).toEqual("3,46 миллиона"); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr_js-2.4.0 | spec/js/numbers/abbreviated/long_decimal.ru.spec.js |