Sha256: 970222f5666b1a39bdca3a6038e2700d906eee13a0b3a4d49d9f4e4123648aa6
Contents?: true
Size: 774 Bytes
Versions: 4
Compression:
Stored size: 774 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/ko.js'); describe("ShortDecimalFormatter", function() { var formatter; beforeEach(function() { TwitterCldr.set_data(data); formatter = new TwitterCldr.ShortDecimalFormatter(); }); describe("#format", function() { it("formats a number as is if the pattern is not defined for the locale", function() { expect(formatter.format(7000)).toEqual("7000"); }); it("formats a number in terms of 'ten thousands' correctly", function() { expect(formatter.format(93000000)).toEqual("9300만"); }); }); });
Version data entries
4 entries across 4 versions & 1 rubygems