platform/packages/inflection3/test/is_tense_test.dart

17 lines
390 B
Dart
Raw Normal View History

2021-05-17 14:50:37 +00:00
library inflection3.is_tense.test;
2021-05-02 08:39:25 +00:00
import 'package:test/test.dart';
2021-05-17 14:50:37 +00:00
import '../lib/inflection3.dart';
2021-05-02 08:39:25 +00:00
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);
});
});
}