6
6
7
7
methods (TestMethodSetup )
8
8
function setup(test )
9
- timestamps = [1529933525520 , 1529933581618 ];
9
+ timestamps = [1529933525520 ; 1529933581618 ];
10
10
test.Time = datetime(timestamps / 1000 , ' ConvertFrom' , ' posixtime' );
11
- test.Temperature = [24.3 , - 3.5 ];
12
- test.Humidity = [60.7 , 54.2 ];
13
- test.RainDrops = int64([123456789 , - 987654321 ]);
14
- test.WindDirection = {' north' , ' west' };
15
- test.Raining = [true , false ];
11
+ test.Temperature = [24.3 ; - 3.5 ];
12
+ test.Humidity = [60.7 ; 54.2 ];
13
+ test.RainDrops = int64([123456789 ; - 987654321 ]);
14
+ test.WindDirection = {' north' ; ' west' };
15
+ test.Raining = [true ; false ];
16
16
end
17
17
end
18
18
@@ -184,8 +184,8 @@ function every_property_is_used(test)
184
184
function skips_nonfinite_fields(test )
185
185
s = Series(' weather' ) ...
186
186
.time(test .Time ) ...
187
- .fields(' temperature' , [NaN , - 3.5 ]) ...
188
- .fields(' humidity' , [60.7 , Inf ]);
187
+ .fields(' temperature' , [NaN ; - 3.5 ]) ...
188
+ .fields(' humidity' , [60.7 ; Inf ]);
189
189
exp = [ ...
190
190
' weather humidity=60.7 1529933525520' newline ...
191
191
' weather temperature=-3.5 1529933581618' ];
@@ -195,8 +195,8 @@ function skips_nonfinite_fields(test)
195
195
function skips_nonfinite_samples(test )
196
196
s = Series(' weather' ) ...
197
197
.time(test .Time ) ...
198
- .fields(' temperature' , [24.3 , Inf ]) ...
199
- .fields(' humidity' , [-Inf , NaN ]);
198
+ .fields(' temperature' , [24.3 ; Inf ]) ...
199
+ .fields(' humidity' , [-Inf ; NaN ]);
200
200
exp = ' weather temperature=24.3 1529933525520' ;
201
201
test .verifyEqual(s .toLine(), exp );
202
202
end
0 commit comments