Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: tests/lib/i18n/message_format_test.dart

Issue 10453079: Added i18n skeleton API for message_formatting (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed typing of date_formatting Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /**
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 */
6
7 #library('message_format_test');
8
9 #import('../../../lib/i18n/message_format.dart');
10 #import('../../../lib/unittest/unittest.dart');
11
12 /**
13 * Tests the MessageFormat library in dart.
14 */
15
16 main() {
17 test('Message formatting', () {
18 var msg_format = new MessageFormat(
19 'Message telling user how many emails will be sent.',
20 '''{NUM_EMAILS_TO_SEND, plural,
21 =0 {unused plural form}
22 =1 {One email will be sent.}
23 other {# emails will be sent.}}''');
24 // TODO(efortuna): Uncomment when functioning correctly.
25 //Expect.stringEquals('5 emails will be sent.',
26 // msg_formatter.format({'NUM_EMAILS_TO_SEND' : 5}));
27 });
28 }
OLDNEW
« lib/i18n/date_format.dart ('K') | « tests/lib/i18n/date_format_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698