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

Unified Diff: sdk/lib/_internal/dartdoc/test/utils_test.dart

Issue 140303009: Remove dartdoc. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/dartdoc/test/utils_test.dart
===================================================================
--- sdk/lib/_internal/dartdoc/test/utils_test.dart (revision 32349)
+++ sdk/lib/_internal/dartdoc/test/utils_test.dart (working copy)
@@ -1,45 +0,0 @@
-// Copyright (c) 2012, 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:unittest/unittest.dart';
-
-import '../lib/src/dartdoc/utils.dart';
-
-void main() {
- group('countOccurrences', () {
- test('empty text returns 0', () {
- expect(countOccurrences('', 'needle'), equals(0));
- });
-
- test('one occurrence', () {
- expect(countOccurrences('bananarama', 'nara'), equals(1));
- });
-
- test('multiple occurrences', () {
- expect(countOccurrences('bananarama', 'a'), equals(5));
- });
-
- test('overlapping matches do not count', () {
- expect(countOccurrences('bananarama', 'ana'), equals(1));
- });
- });
-
- group('repeat', () {
- test('zero times returns an empty string', () {
- expect(repeat('ba', 0), isEmpty);
- });
-
- test('one time returns the string', () {
- expect(repeat('ba', 1), equals('ba'));
- });
-
- test('multiple times', () {
- expect(repeat('ba', 3), equals('bababa'));
- });
-
- test('multiple times with a separator', () {
- expect(repeat('ba', 3, separator: ' '), equals('ba ba ba'));
- });
- });
-}
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/test_files/package_test_file.dart ('k') | tests/lib/analyzer/analyze_library.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698