|
202 | 202 | preparestate!(kalmanfilter1, y) |
203 | 203 | @test updatestate!(kalmanfilter1, u, y, d) ≈ zeros(4) |
204 | 204 | @test kalmanfilter1.x̂0 ≈ zeros(4) |
205 | | - @test_skip @allocations(preparestate!(kalmanfilter1, y)) == 0 |
206 | | - @test_skip @allocations(updatestate!(kalmanfilter1, u, y)) == 0 |
207 | 205 | preparestate!(kalmanfilter1, y) |
208 | 206 | @test evaloutput(kalmanfilter1) ≈ kalmanfilter1() ≈ [50, 30] |
209 | 207 | @test evaloutput(kalmanfilter1, d) ≈ kalmanfilter1(d) ≈ [50, 30] |
210 | | - @test_skip @allocations(evaloutput(kalmanfilter1, d)) == 0 |
211 | 208 | @test initstate!(kalmanfilter1, [10, 50], [50, 30+1]) ≈ [zeros(3); [1]] |
212 | 209 | setstate!(kalmanfilter1, [1,2,3,4], diagm(.1:.1:.4)) |
213 | 210 | @test kalmanfilter1.x̂0 ≈ [1,2,3,4] |
|
323 | 320 | preparestate!(lo1, y) |
324 | 321 | @test updatestate!(lo1, u, y, d) ≈ zeros(4) |
325 | 322 | @test lo1.x̂0 ≈ zeros(4) |
326 | | - @test_skip @allocations(preparestate!(lo1, y)) == 0 |
327 | | - @test_skip @allocations(updatestate!(lo1, u, y)) == 0 |
328 | 323 | preparestate!(lo1, y) |
329 | 324 | @test evaloutput(lo1) ≈ lo1() ≈ [50, 30] |
330 | 325 | @test evaloutput(lo1, d) ≈ lo1(d) ≈ [50, 30] |
331 | | - @test_skip @allocations(evaloutput(lo1, d)) == 0 |
332 | 326 | @test initstate!(lo1, [10, 50], [50, 30+1]) ≈ [zeros(3); [1]] |
333 | 327 | setstate!(lo1, [1,2,3,4]) |
334 | 328 | @test lo1.x̂0 ≈ [1,2,3,4] |
|
454 | 448 | @test updatestate!(internalmodel1, u, y, d) ≈ zeros(2) |
455 | 449 | @test internalmodel1.x̂d ≈ internalmodel1.x̂0 ≈ zeros(2) |
456 | 450 | @test internalmodel1.x̂s ≈ ones(2) |
457 | | - @test_skip @allocations(preparestate!(internalmodel1, y)) == 0 |
458 | | - @test_skip @allocations(updatestate!(internalmodel1, u, y)) == 0 |
459 | 451 | preparestate!(internalmodel1, y) |
460 | 452 | @test evaloutput(internalmodel1, d) ≈ [51,31] |
461 | | - @test_skip @allocations(evaloutput(internalmodel1, d)) == 0 |
462 | 453 | @test initstate!(internalmodel1, [10, 50], [50, 30]) ≈ zeros(2) |
463 | 454 | @test internalmodel1.x̂s ≈ zeros(2) |
464 | 455 | setstate!(internalmodel1, [1,2]) |
|
590 | 581 | preparestate!(ukf1, y) |
591 | 582 | @test updatestate!(ukf1, u, y, d) ≈ zeros(4) atol=1e-9 |
592 | 583 | @test ukf1.x̂0 ≈ zeros(4) atol=1e-9 |
593 | | - @test_skip @allocations(preparestate!(ukf1, y)) == 0 |
594 | | - @test_skip @allocations(updatestate!(ukf1, u, y)) == 0 |
595 | 584 | preparestate!(ukf1, y) |
596 | 585 | @test evaloutput(ukf1) ≈ ukf1() ≈ [50, 30] |
597 | 586 | @test evaloutput(ukf1, d) ≈ ukf1(d) ≈ [50, 30] |
598 | | - @test_skip @allocations(evaloutput(ukf1, d)) == 0 |
599 | 587 | @test initstate!(ukf1, [10, 50], [50, 30+1]) ≈ zeros(4) atol=1e-9 |
600 | 588 | setstate!(ukf1, [1,2,3,4], diagm(.1:.1:.4)) |
601 | 589 | @test ukf1.x̂0 ≈ [1,2,3,4] |
|
749 | 737 | preparestate!(ekf1, y) |
750 | 738 | @test updatestate!(ekf1, u, y, d) ≈ zeros(4) atol=1e-9 |
751 | 739 | @test ekf1.x̂0 ≈ zeros(4) atol=1e-9 |
752 | | - @test_skip @allocations(preparestate!(ekf1, y)) == 0 |
753 | | - @test_skip @allocations(updatestate!(ekf1, u, y)) == 0 |
754 | 740 | preparestate!(ekf1, y) |
755 | 741 | @test evaloutput(ekf1) ≈ ekf1() ≈ [50, 30] |
756 | 742 | @test evaloutput(ekf1, d) ≈ ekf1(d) ≈ [50, 30] |
757 | | - @test_skip @allocations(evaloutput(ekf1, d)) == 0 |
758 | 743 | @test initstate!(ekf1, [10, 50], [50, 30+1]) ≈ zeros(4); |
759 | 744 | setstate!(ekf1, [1,2,3,4], diagm(.1:.1:.4)) |
760 | 745 | @test ekf1.x̂0 ≈ [1,2,3,4] |
|
0 commit comments