Closed jwkohnen closed 8 years ago
Amendment: I've updated the script's gist. The above test already had a mvn -Pgen "generate-test-sources"
. Update: I did reproduce the fail once more.
This data is ultimately extracted from BitSet
's data
field, which, as you suspect, is a map
. We can probably sort this field in BitSet
's String
method.
It is still a bit hard to grasp what does what where and why. I've seen that code and wondered if we should reimplement BitSet using uint and binary operations (just like Java's BitSet under the hood) -- but sorting String() is probably the easier way for now.
... or is it sparse? Edit: Oh lala, I've just reviewed Java's BitSet and it is a lot different than I remembered. Let's sort String(). :D
Two test runs of the same test had different output, yielding in a pass and a fail. Maybe that is due to non-determinism of a Go map or something?
The failed test run put out
ambigAlts={2, 1}
instead ofambigAlts={1, 2}
. Revision is 439a3b7. Apparently we'll have to run all tests a few hundred times, yay! Now I've run this test a dozen times and could not reproduce the fail.I have arbitrarily chosen this test for debugging my git-bisect runner script. This is one of the tests that we've turned green in the last few days. Or maybe it was green all along and I just had some bad entropy in my test history? :)