platform/packages/inflection3/test/inflection_test.dart

18 lines
594 B
Dart
Raw Normal View History

2021-05-17 14:50:37 +00:00
library inflection3.test;
2021-05-02 08:39:25 +00:00
import 'package:test/test.dart';
2021-05-17 15:10:07 +00:00
import 'package:inflection3/inflection3.dart';
2021-05-02 08:39:25 +00:00
void main() {
2021-05-17 15:10:07 +00:00
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'));
2021-05-02 08:39:25 +00:00
});
});
}