Skip to content

Commit 0c536db

Browse files
committed
#21 Fixed tests
1 parent b05455d commit 0c536db

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

test/src/model/background_location_update_data_test.dart

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,28 @@ import 'package:flutter_test/flutter_test.dart';
33

44
void main() {
55
test('Background location update data', () async {
6-
const data = BackgroundLocationUpdateData(lat: 51.45, lon: 4.5);
6+
const data = BackgroundLocationUpdateData(lat: 51.45, lon: 4.5, horizontalAccuracy: 1.2, alt: 42.3, verticalAccuracy: 0.3, course: 128.3, courseAccuracy: 14.3, speed: 12.2, speedAccuracy: 0.9);
77
expect(data.lat, 51.45);
88
expect(data.lon, 4.5);
9+
expect(data.horizontalAccuracy, 1.2);
10+
expect(data.alt, 42.3);
11+
expect(data.verticalAccuracy, 0.3);
12+
expect(data.course, 128.3);
13+
expect(data.courseAccuracy, 14.3);
14+
expect(data.speed, 12.2);
15+
expect(data.speedAccuracy, 0.9);
916
});
1017

1118
test('Background location update data', () async {
12-
const data = BackgroundLocationUpdateData(lat: 51.45, lon: 4.5);
19+
const data = BackgroundLocationUpdateData(lat: 51.45, lon: 4.5, horizontalAccuracy: 1.2, alt: 42.3, verticalAccuracy: 0.3, course: 128.3, courseAccuracy: 14.3, speed: 12.2, speedAccuracy: 0.9);
1320
expect(data.lat, 51.45);
1421
expect(data.lon, 4.5);
22+
expect(data.horizontalAccuracy, 1.2);
23+
expect(data.alt, 42.3);
24+
expect(data.verticalAccuracy, 0.3);
25+
expect(data.course, 128.3);
26+
expect(data.courseAccuracy, 14.3);
27+
expect(data.speed, 12.2);
28+
expect(data.speedAccuracy, 0.9);
1529
});
1630
}

0 commit comments

Comments
 (0)