platform/packages/inflection2/test/is_tense_test.dart
thomashii@dukefirehawk.com 32f3eaa5c4 Added and migrated inflection2
2021-05-02 16:39:25 +08:00

16 lines
389 B
Dart

library inflection.is_tense.test;
import 'package:test/test.dart';
import '../lib/inflection2.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);
});
});
}