Searched refs:iterationOrder (Results 1 – 5 of 5) sorted by relevance
112 static String iterationOrder(Iterable<Tree> iterable) { in iterationOrder() method in TreeTraverserTest129 assertThat(iterationOrder(ADAPTER.preOrderTraversal(h))).isEqualTo("hdabcegf"); in testPreOrder()134 assertThat(iterationOrder(ADAPTER.postOrderTraversal(h))).isEqualTo("abcdefgh"); in testPostOrder()139 assertThat(iterationOrder(ADAPTER.breadthFirstTraversal(h))).isEqualTo("hdegabcf"); in testBreadthOrder()
114 static String iterationOrder(Iterable<Tree> iterable) { in iterationOrder() method in TreeTraverserTest131 assertThat(iterationOrder(ADAPTER.preOrderTraversal(h))).isEqualTo("hdabcegf"); in testPreOrder()136 assertThat(iterationOrder(ADAPTER.postOrderTraversal(h))).isEqualTo("abcdefgh"); in testPostOrder()141 assertThat(iterationOrder(ADAPTER.breadthFirstTraversal(h))).isEqualTo("hdegabcf"); in testBreadthOrder()
49 public void iterationOrder() { in iterationOrder() method in MapProviderFactoryTest
107 public void iterationOrder() { in iterationOrder() method in SetFactoryTest
1857 static void generateTwoPassRandomIterationOrder (std::vector<int>& iterationOrder, int numSamples) in generateTwoPassRandomIterationOrder() argument1862 DE_ASSERT((int)iterationOrder.size() == numSamples); in generateTwoPassRandomIterationOrder()1869 iterationOrder[sampleNdx] = sampleNdx * 2; in generateTwoPassRandomIterationOrder()1871 iterationOrder[sampleNdx] = (sampleNdx - midPoint) * 2 + 1; in generateTwoPassRandomIterationOrder()1874 std::swap(iterationOrder[ndx], iterationOrder[rnd.getInt(0, midPoint - 1)]); in generateTwoPassRandomIterationOrder()1875 for (int ndx = midPoint; ndx < (int)iterationOrder.size(); ++ndx) in generateTwoPassRandomIterationOrder()1876 …std::swap(iterationOrder[ndx], iterationOrder[rnd.getInt(midPoint, (int)iterationOrder.size()-1)]); in generateTwoPassRandomIterationOrder()