platform/packages/inflection3/test/inflection_test.dart
2021-05-17 23:10:07 +08:00

17 lines
594 B
Dart

library inflection3.test;
import 'package:test/test.dart';
import 'package:inflection3/inflection3.dart';
void main() {
group('The inflection library', () {
test('provides a few convenient helper functions', () {
expect(pluralize('axis'), equals('axes'));
expect(convertToPlural('axis'), equals('axes'));
expect(singularize('Houses'), equals('House'));
expect(convertToSingular('Houses'), equals('House'));
expect(convertToSnakeCase('CamelCase'), equals('camel_case'));
expect(convertToSpinalCase('CamelCase'), equals('camel-case'));
});
});
}