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

15 lines
402 B
Dart

library inflection3.is_tense.test;
import 'package:test/test.dart';
import 'package:inflection3/inflection3.dart';
void main() {
group('isTense', () {
test('correctly identifies if a word is in past tense', () {
expect(isPastTense('run'), false);
expect(isPastTense('ran'), true);
expect(isPastTense('PusHed'), true);
expect(isPastTense('PusH'), false);
});
});
}