-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New unit-test SP Test ExactOutput #164
Conversation
this is result of this test backported to previous master (SP w/o Connections)...which is a good thing -> the mistake is in the test, not in SP |
This PR requires that the SP is deterministic. The current "gold" string is wrong. It is supposed to be sorted so that it can be compared as a string. I tried fixing it and it still didn't work, so I will need to take a deeper look at this ... |
This should be truth (even now), given a fixed seed. I looked briefly at the hinted implementation: I'd think the sorting is not needed. And SDR_t could be (better?) used for the comparison, instead of string®ex ? |
The sorting is only needed if it uses string comparison. I think sorting also improves readability of method SDR.print(). I like using strings for the "gold". Its human & machine readable. You can also dump debug & diagnostic info into the gold string, which could be useful. In the extreme case, we could capture standard-out into the gold string and check the full verbose output. If the gold string gets too big then it can move to its own file. |
👍
Agree in some cases this is useful. Here, we really want to compare SDRs, why not doing it with the specialized type for it? (does not need regex, trimming, can use SDR::==() ) |
merge master
Let's extend the scope of this PR to "Deterministic algorithms (SP, TM)"
|
Moved to PR #197 |
No description provided.