02483247a7
Change-Id: I08e8310c6133418fd99954c306601b277a85f3c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403932 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
38 lines
977 B
Dart
38 lines
977 B
Dart
// Copyright (c) 2015, 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:linter/src/utils.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'util/test_utils.dart';
|
|
|
|
void main() {
|
|
defineLinterEngineTests();
|
|
}
|
|
|
|
/// Linter engine tests
|
|
void defineLinterEngineTests() {
|
|
group('engine', () {
|
|
setUp(setUpSharedTestEnvironment);
|
|
|
|
group('camel case', () {
|
|
test('humanize', () {
|
|
expect(CamelCaseString('FooBar').humanized, 'Foo Bar');
|
|
expect(CamelCaseString('Foo').humanized, 'Foo');
|
|
});
|
|
test('validation', () {
|
|
expect(
|
|
() => CamelCaseString('foo'),
|
|
throwsA(TypeMatcher<ArgumentError>()),
|
|
);
|
|
});
|
|
test('toString', () {
|
|
expect(CamelCaseString('FooBar').toString(), 'FooBar');
|
|
});
|
|
});
|
|
|
|
group('dtos', () {});
|
|
});
|
|
}
|