chapel-lang/chapel — pull request #370 by benharsh (2014-09-10 18:12:48+00:00)
Title: Sets

This fix should stop this test from failing in a nondeterministic way.

For associative domains, the order in which indices are yielded is nondeterministic. Below, even though the domains for the arrays have the same indices, the indices may have been added in a different order because of the internal forall used by the set operation. Because of this, the order in which the indices are yielded may not be the same. The promoted "==" would invoke the parallel iterators of the arrays, and an assertion fails when checking for domain mismatch.