Skip to content

test(price-guard): test median with 3 and 5 fresh sources and outliers (#107) - #1128

Closed
jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:test/issue-107-median-three-and-five-sources
Closed

jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:test/issue-107-median-three-and-five-sources

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #107

Summary

  • Tests PriceGuard median calculation with 3 fresh sources inside band_bps = 50 (1.000, 1.002, 1.004 -> Ok at 1.002).
  • Tests 3 fresh sources where one source (1.060) is outside band_bps = 50, verifying status == Degraded and value retains last_good.
  • Tests 5 fresh sources published out of order, verifying guarded_price returns the 3rd sorted value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test PriceGuard median with three and five fresh sources and in-band outliers

1 participant