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 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('isTense', () {
|
2021-05-02 08:39:25 +00:00
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|