style: apply dart format

This commit is contained in:
Aric Camarata 2026-06-13 11:57:58 -04:00
parent b8923f49a6
commit de3f9c8c67

View file

@ -198,7 +198,9 @@ void main() {
// "March 15" (via their .year/.month/.day fields) produce identical prayer
// times, regardless of what the host machine timezone is.
test('local DateTime and UTC noon for same civil date produce identical times', () {
test(
'local DateTime and UTC noon for same civil date produce identical times',
() {
// Both express 2024-03-15: local midnight and UTC noon share year/month/day = 2024/3/15
final local = DateTime(2024, 3, 15);
final utcNoon = DateTime.utc(2024, 3, 15, 12, 0, 0);
@ -213,9 +215,12 @@ void main() {
expect(timesNoon.asr, closeTo(timesLocal.asr, 0.0001));
expect(timesNoon.maghrib, closeTo(timesLocal.maghrib, 0.0001));
expect(timesNoon.isha, closeTo(timesLocal.isha, 0.0001));
});
},
);
test('UTC midnight and UTC noon for same civil date produce identical times', () {
test(
'UTC midnight and UTC noon for same civil date produce identical times',
() {
final utcMidnight = DateTime.utc(2024, 3, 15, 0, 0, 0);
final utcNoon = DateTime.utc(2024, 3, 15, 12, 0, 0);
@ -228,9 +233,12 @@ void main() {
expect(timesNoon.asr, closeTo(timesMid.asr, 0.0001));
expect(timesNoon.maghrib, closeTo(timesMid.maghrib, 0.0001));
expect(timesNoon.isha, closeTo(timesMid.isha, 0.0001));
});
},
);
test('angles are identical for local vs UTC noon for the same civil date', () {
test(
'angles are identical for local vs UTC noon for the same civil date',
() {
final local = DateTime(2024, 6, 15);
final utcNoon = DateTime.utc(2024, 6, 15, 12, 0, 0);
@ -241,6 +249,7 @@ void main() {
expect(anglesUtcNoon.fajrAngle, closeTo(anglesLocal.fajrAngle, 0.001));
expect(anglesUtcNoon.ishaAngle, closeTo(anglesLocal.ishaAngle, 0.001));
});
},
);
});
}