Skip to content

Add tests for propagate#134

Open
GuusAvis wants to merge 3 commits into
gaurav-arya:ag-propagatebindfrom
GuusAvis:add-tests-ag-propagatebind
Open

Add tests for propagate#134
GuusAvis wants to merge 3 commits into
gaurav-arya:ag-propagatebindfrom
GuusAvis:add-tests-ag-propagatebind

Conversation

@GuusAvis

@GuusAvis GuusAvis commented Aug 5, 2024

Copy link
Copy Markdown

Added two new tests of propagate that check if finite perturbations returned by functions upon normal calls are treated correctly by propagate.

  1. Adding two stochastic triples together, like in stochastic triples not passed through propagate lose their perturbations #128 (comment); the way I'm constructing the stochastic triples may be nonstandard/bad practice though.
  2. Step-game-like example that @gaurav-arya provided in Make propagate more like a monadic bind by supporting stochastic triple creating functions #132. It's a statistical test so it can fail, but I set some pretty wide margins (basically 10 sigma) so it should be quite rare I think. Let me know if this is what you had in mind.

I'm open to suggestions!

I expect the tests for this PR to fail because there are still the issues in #133 , probably that should be dealt with first before looking more closely at this one.

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.

1 participant