- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 93 for 2112 (0.02 seconds)
-
guava-tests/test/com/google/common/collect/Collections2Test.java
Iterator<List<Integer>> permutations = Collections2.permutations(newArrayList(1, 1, 2)).iterator(); assertNextPermutation(newArrayList(1, 1, 2), permutations); assertNextPermutation(newArrayList(1, 2, 1), permutations); assertNextPermutation(newArrayList(2, 1, 1), permutations); assertNextPermutation(newArrayList(2, 1, 1), permutations); assertNextPermutation(newArrayList(1, 2, 1), permutations);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/Collections2Test.java
Iterator<List<Integer>> permutations = Collections2.permutations(newArrayList(1, 1, 2)).iterator(); assertNextPermutation(newArrayList(1, 1, 2), permutations); assertNextPermutation(newArrayList(1, 2, 1), permutations); assertNextPermutation(newArrayList(2, 1, 1), permutations); assertNextPermutation(newArrayList(2, 1, 1), permutations); assertNextPermutation(newArrayList(1, 2, 1), permutations);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
testSortDescending(new double[] {1, 2}, new double[] {2, 1}); testSortDescending(new double[] {1, 3, 1}, new double[] {3, 1, 1}); testSortDescending(new double[] {-1, 1, -2, 2}, new double[] {2, 1, -1, -2}); testSortDescending( new double[] {-1, 1, Double.NaN, -2, -0.0, 0, 2}, new double[] {Double.NaN, 2, 1, 0, -0.0, -1, -2}); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 30.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
testSortDescending(new int[] {1, 2}, new int[] {2, 1}); testSortDescending(new int[] {1, 3, 1}, new int[] {3, 1, 1}); testSortDescending(new int[] {-1, 1, -2, 2}, new int[] {2, 1, -1, -2}); } private static void testSortDescending(int[] input, int[] expectedOutput) { input = Arrays.copyOf(input, input.length); Ints.sortDescending(input);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
testSortDescending(new short[] {1, 2}, new short[] {2, 1}); testSortDescending(new short[] {1, 3, 1}, new short[] {3, 1, 1}); testSortDescending(new short[] {-1, 1, -2, 2}, new short[] {2, 1, -1, -2}); } private static void testSortDescending(short[] input, short[] expectedOutput) { input = Arrays.copyOf(input, input.length); Shorts.sortDescending(input);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 27.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 25.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
assertMinSize(union(setSizeRange(11, 12), setSizeRange(10, 20)), 11); } public void testUnion_maxSize() { assertMaxSize(union(emptySet(), emptySet()), 0); assertMaxSize(union(setSize(2), setSize(3)), 5); assertMaxSize(union(setSize(3), setSize(2)), 5); assertMaxSize(union(setSizeRange(10, 20), setSizeRange(11, 12)), 32); assertMaxSize(union(setSizeRange(11, 12), setSizeRange(10, 20)), 32); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/ValueGraphTest.java
assertThat(graph.removeEdge(2, 3)).isNull(); } @Test public void removeEdge_directed_orderMismatch() { graph = ValueGraphBuilder.directed().build(); graph.putEdgeValue(1, 2, "1->2"); graph.putEdgeValue(2, 1, "2->1"); IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> graph.removeEdge(EndpointPair.unordered(1, 2)));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 18.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) { int result = BigIntegerMath.log10(x, HALF_UP); BigInteger x2 = x.pow(2); // x^2 < 10^(2 * result + 1), or else we would have rounded up assertThat(TEN.pow(2 * result + 1)).isGreaterThan(x2); // x^2 >= 10^(2 * result - 1), or else we would have rounded down assertTrue(result == 0 || TEN.pow(2 * result - 1).compareTo(x2) <= 0); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 27.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/ValueGraphTest.java
assertThat(graph.removeEdge(2, 3)).isNull(); } @Test public void removeEdge_directed_orderMismatch() { graph = ValueGraphBuilder.directed().build(); graph.putEdgeValue(1, 2, "1->2"); graph.putEdgeValue(2, 1, "2->1"); IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> graph.removeEdge(EndpointPair.unordered(1, 2)));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 20.7K bytes - Click Count (0)