@@ -3,14 +3,28 @@ import 'package:flutter_test/flutter_test.dart';
3
3
4
4
void main () {
5
5
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 );
7
7
expect (data.lat, 51.45 );
8
8
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 );
9
16
});
10
17
11
18
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 );
13
20
expect (data.lat, 51.45 );
14
21
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 );
15
29
});
16
30
}
0 commit comments