Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for testStringConverter_reverse (0.14 sec)

  1. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThrows(IllegalArgumentException.class, () -> converter.convert("xxx"));
      }
    
      @GwtIncompatible // stringConverter
      public void testStringConverter_reverse() {
        Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class);
        assertEquals("CHEETO", converter.reverse().convert(TestEnum.CHEETO));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.stringConverter().reverse().convert(null)).isNull();
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.reverse().convert(1.0)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0)).isEqualTo("0.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.stringConverter().reverse().convert(null)).isNull();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.reverse().convert(1.0f)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0f)).isEqualTo("0.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      public void testStringConverter_nullConversions() {
        assertThat(Ints.stringConverter().convert(null)).isNull();
        assertThat(Ints.stringConverter().reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_reverse() {
        Converter<String, Integer> converter = Ints.stringConverter();
        assertThat(converter.reverse().convert(1)).isEqualTo("1");
        assertThat(converter.reverse().convert(0)).isEqualTo("0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.stringConverter().reverse().convert(null)).isNull();
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.reverse().convert(1.0)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0)).isEqualTo("0.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.stringConverter().reverse().convert(null)).isNull();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testStringConverter_reverse() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.reverse().convert(1.0f)).isEqualTo("1.0");
        assertThat(converter.reverse().convert(0.0f)).isEqualTo("0.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/LongsTest.java

      public void testStringConverter_nullConversions() {
        assertThat(Longs.stringConverter().convert(null)).isNull();
        assertThat(Longs.stringConverter().reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_reverse() {
        Converter<String, Long> converter = Longs.stringConverter();
        assertThat(converter.reverse().convert(1L)).isEqualTo("1");
        assertThat(converter.reverse().convert(0L)).isEqualTo("0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top