tweak test

This commit is contained in:
Neeraj Gupta 2022-11-12 14:41:07 +05:30
parent ae00494854
commit 16beff3b0f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -31,10 +31,11 @@ void main() {
});
test("verify constants", () {
final date = DateTime.fromMicrosecondsSinceEpoch(jan011981Time);
expect(
jan011981Time,
DateTime(1981, 1, 1).toUtc().microsecondsSinceEpoch,
reason: "constant mismatch",
date.year == 1981 && date.month == 1,
true,
reason: "constant mismatch : ${date.toIso8601String()}",
);
});
}