4da1bb0da7
Change-Id: I2b8485a1918fb0f1b6c5f0cbe626418aeef9c06e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132025 Commit-Queue: Jaime Wren <jwren@google.com> Reviewed-by: Devon Carew <devoncarew@google.com>
23 lines
558 B
Dart
23 lines
558 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:dartdev/src/utils.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('pluralize', () {
|
|
test('zero', () {
|
|
expect(pluralize('cat', 0), 'cats');
|
|
});
|
|
|
|
test('one', () {
|
|
expect(pluralize('cat', 1), 'cat');
|
|
});
|
|
|
|
test('many', () {
|
|
expect(pluralize('cat', 2), 'cats');
|
|
});
|
|
});
|
|
}
|