Skip to content

Commit a216e25

Browse files
committed
oracle: update test_oracle with new expected values
1 parent 9871a74 commit a216e25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

program/src/oracle/test_oracle.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ Test( oracle, upd_aggregate ) {
575575
px->comp_[px->num_++].latest_ = p2;
576576
px->comp_[px->num_++].latest_ = p1;
577577
upd_aggregate( px, 1001 );
578-
cr_assert( px->agg_.price_ == 147 );
579-
cr_assert( px->agg_.conf_ == 48 );
578+
cr_assert( px->agg_.price_ == 145 );
579+
cr_assert( px->agg_.conf_ == 55 );
580580
cr_assert( px->twap_.val_ == 108 );
581581
cr_assert( px->twac_.val_ == 16 );
582582
cr_assert( px->num_qt_ == 2 );
@@ -589,8 +589,8 @@ Test( oracle, upd_aggregate ) {
589589
px->comp_[px->num_++].latest_ = p1;
590590
px->comp_[px->num_++].latest_ = p3;
591591
upd_aggregate( px, 1001 );
592-
cr_assert( px->agg_.price_ == 191 );
593-
cr_assert( px->agg_.conf_ == 74 );
592+
cr_assert( px->agg_.price_ == 200 );
593+
cr_assert( px->agg_.conf_ == 90 );
594594
cr_assert( px->twap_.val_ == 116 );
595595
cr_assert( px->twac_.val_ == 22 );
596596
cr_assert( px->num_qt_ == 3 );
@@ -604,8 +604,8 @@ Test( oracle, upd_aggregate ) {
604604
px->comp_[px->num_++].latest_ = p4;
605605
px->comp_[px->num_++].latest_ = p2;
606606
upd_aggregate( px, 1001 );
607-
cr_assert( px->agg_.price_ == 235 );
608-
cr_assert( px->agg_.conf_ == 99 );
607+
cr_assert( px->agg_.price_ == 245 );
608+
cr_assert( px->agg_.conf_ == 85 );
609609
cr_assert( px->twap_.val_ == 124 );
610610
cr_assert( px->twac_.val_ == 27 );
611611
cr_assert( px->last_slot_ == 1001 );

0 commit comments

Comments
 (0)