Sha256: c71b0114a6cc0ce91bcd60c1b8f0b52c6cda2cb68a82f528048f3a8074978bd9
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 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("LongDecimalFormatter", function() { var formatter; beforeEach(function() { TwitterCldr.set_data(data); formatter = new TwitterCldr.LongDecimalFormatter(); }); 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