Sha256: 26c7046dab25246962f126ad29e8a30f0cb253a42294d4caeaea08caf2566760

Contents?: true

Size: 619 Bytes

Versions: 4

Compression:

Stored size: 619 Bytes

Contents

// Copyright 2012 Twitter, Inc
// http://www.apache.org/licenses/LICENSE-2.0


var TwitterCldr = require('../../../../lib/assets/javascripts/twitter_cldr/core.js');
var data = require('../../../../lib/assets/javascripts/twitter_cldr/ru.js');

describe("ShortDecimalFormatter", function() {
  var formatter;
  beforeEach(function() {
    TwitterCldr.set_data(data);
    formatter = new TwitterCldr.ShortDecimalFormatter();
  });

  describe("#format", function() {
    it("formats a number with a literal period in the pattern", function() {
      expect(formatter.format(1000)).toEqual("1 тыс.");
    });
  });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-3.3.0 spec/js/numbers/abbreviated/short_decimal.ru.spec.js
twitter_cldr_js-3.2.0 spec/js/numbers/abbreviated/short_decimal.ru.spec.js
twitter_cldr_js-3.1.1 spec/js/numbers/abbreviated/short_decimal.ru.spec.js
twitter_cldr_js-3.1.0 spec/js/numbers/abbreviated/short_decimal.ru.spec.js