Test to ensure text datetimes preserve millis

This commit is contained in:
Simon Binder 2022-08-07 13:35:27 +02:00
parent 50a65b236a
commit a735e91f30
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ void _testWith(TodoDb Function() openDb, {bool dateTimeAsText = false}) {
expect(await eval(Variable(local)), local);
},
);
test('preserves milliseconds', () async {
final local = DateTime(2020, 09, 03, 23, 55, 0, 123);
expect(await eval(Variable(local)), local);
});
}
test('plus and minus', () async {