tweak test
This commit is contained in:
parent
ae00494854
commit
16beff3b0f
|
@ -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()}",
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue