Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for test_reverse (0.27 sec)

  1. guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      public void testReverse() {
        testReverse(new float[] {}, new float[] {});
        testReverse(new float[] {1}, new float[] {1});
        testReverse(new float[] {1, 2}, new float[] {2, 1});
        testReverse(new float[] {3, 1, 1}, new float[] {1, 1, 3});
        testReverse(new float[] {-1, 1, -2, 2}, new float[] {2, -2, 1, -1});
      }
    
      private static void testReverse(float[] input, float[] expectedOutput) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      public void testReverse() {
        testReverse(new int[] {}, new int[] {});
        testReverse(new int[] {1}, new int[] {1});
        testReverse(new int[] {1, 2}, new int[] {2, 1});
        testReverse(new int[] {3, 1, 1}, new int[] {1, 1, 3});
        testReverse(new int[] {-1, 1, -2, 2}, new int[] {2, -2, 1, -1});
      }
    
      private static void testReverse(int[] input, int[] expectedOutput) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      }
    
      public void testReverse() {
        testReverse(new char[] {}, new char[] {});
        testReverse(new char[] {'1'}, new char[] {'1'});
        testReverse(new char[] {'1', '2'}, new char[] {'2', '1'});
        testReverse(new char[] {'3', '1', '1'}, new char[] {'1', '1', '3'});
        testReverse(new char[] {'A', '1', 'B', '2'}, new char[] {'2', 'B', '1', 'A'});
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

            assertEquals(
                GeneralRange.range(Ordering.natural(), 3, lowerType, 4, upperType),
                GeneralRange.from(Range.range(3, lowerType, 4, upperType)));
          }
        }
      }
    
      public void testReverse() {
        assertEquals(GeneralRange.all(ORDERING.reverse()), GeneralRange.all(ORDERING).reverse());
        assertEquals(
            GeneralRange.downTo(ORDERING.reverse(), 3, CLOSED),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      public void testReverse() {
        testReverse(new boolean[] {}, new boolean[] {});
        testReverse(new boolean[] {true}, new boolean[] {true});
        testReverse(new boolean[] {false, true}, new boolean[] {true, false});
        testReverse(new boolean[] {true, false, false}, new boolean[] {false, false, true});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      public void testReverse() {
        testReverse(new boolean[] {}, new boolean[] {});
        testReverse(new boolean[] {true}, new boolean[] {true});
        testReverse(new boolean[] {false, true}, new boolean[] {true, false});
        testReverse(new boolean[] {true, false, false}, new boolean[] {false, false, true});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      public void testReverse() {
        testReverse(new short[] {}, new short[] {});
        testReverse(new short[] {1}, new short[] {1});
        testReverse(new short[] {1, 2}, new short[] {2, 1});
        testReverse(new short[] {3, 1, 1}, new short[] {1, 1, 3});
        testReverse(new short[] {-1, 1, -2, 2}, new short[] {2, -2, 1, -1});
      }
    
      private static void testReverse(short[] input, short[] expectedOutput) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      public void testReverse() {
        testReverse(new float[] {}, new float[] {});
        testReverse(new float[] {1}, new float[] {1});
        testReverse(new float[] {1, 2}, new float[] {2, 1});
        testReverse(new float[] {3, 1, 1}, new float[] {1, 1, 3});
        testReverse(new float[] {-1, 1, -2, 2}, new float[] {2, -2, 1, -1});
      }
    
      private static void testReverse(float[] input, float[] expectedOutput) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/ConverterTest.java

        Iterator<Long> iterator = convertedValues.iterator();
        iterator.next();
        iterator.remove();
        assertEquals(ImmutableList.of("123"), mutableList);
      }
    
      public void testReverse() {
        Converter<Long, String> reverseConverter = STR_TO_LONG.reverse();
    
        assertEquals(STR_VAL, reverseConverter.convert(LONG_VAL));
        assertEquals(LONG_VAL, reverseConverter.reverse().convert(STR_VAL));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testReverse() {
        testReverse(new double[] {}, new double[] {});
        testReverse(new double[] {1}, new double[] {1});
        testReverse(new double[] {1, 2}, new double[] {2, 1});
        testReverse(new double[] {3, 1, 1}, new double[] {1, 1, 3});
        testReverse(new double[] {-1, 1, -2, 2}, new double[] {2, -2, 1, -1});
      }
    
      private static void testReverse(double[] input, double[] expectedOutput) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
Back to top