Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 134 for teststring (0.11 sec)

  1. guava-tests/test/com/google/common/io/ResourcesTest.java

                "Resources.asCharSource[URL, Charset]",
                SourceSinkFactories.urlCharSourceFactory(),
                false));
        suite.addTestSuite(ResourcesTest.class);
        return suite;
      }
    
      public void testToString() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(I18N, Resources.toString(resource, UTF_8));
        assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. internal/s3select/sql/funceval.go

    func errCastFailure(msg string) error {
    	return fmt.Errorf("Error casting: %s", msg)
    }
    
    // Allowed cast types
    const (
    	castBool      = "BOOL"
    	castInt       = "INT"
    	castInteger   = "INTEGER"
    	castString    = "STRING"
    	castFloat     = "FLOAT"
    	castDecimal   = "DECIMAL"
    	castNumeric   = "NUMERIC"
    	castTimestamp = "TIMESTAMP"
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        for (double x : VALUES) {
          AtomicDouble d = new AtomicDouble(x);
          assertBitEquals(serialClone(d).get(), d.get());
        }
      }
    
      /** toString returns current value */
      public void testToString() {
        AtomicDouble at = new AtomicDouble();
        assertEquals("0.0", at.toString());
        for (double x : VALUES) {
          at.set(x);
          assertEquals(Double.toString(x), at.toString());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        @Override
        public Object call() {
          return Boolean.TRUE;
        }
      }
    
      public static final String TEST_STRING = "a test string";
    
      public static class StringTask implements Callable<String> {
        @Override
        public String call() {
          return TEST_STRING;
        }
      }
    
      public Callable<String> latchAwaitingStringTask(final CountDownLatch latch) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertEquals(Ordering.natural(), copy.keyComparator());
        assertEquals(Ordering.natural(), copy.valueComparator());
        assertEquals(Ordering.natural(), copy.get("google").comparator());
      }
    
      public void testToString() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 3);
        multimap.put("bar", 1);
        multimap.putAll("foo", asList(-1, 2, 4));
        multimap.putAll("bar", asList(2, 3));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

          assertEquals(
              "One of the registered catchers did not receive an event.",
              expectedEvents,
              catcher.getEvents());
        }
      }
    
      public void testToString() throws Exception {
        EventBus eventBus = new EventBus("a b ; - \" < > / \\ €");
        assertEquals("EventBus{a b ; - \" < > / \\ €}", eventBus.toString());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
      public void testToString() {
        for (long value : TEST_LONGS) {
          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-0x5"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-05"));
      }
    
      public void testToString() {
        int[] bases = {2, 5, 7, 8, 10, 16};
        for (long a : UNSIGNED_INTS) {
          for (int base : bases) {
            assertThat(Long.toString(a, base)).isEqualTo(UnsignedInts.toString((int) a, base));
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      private static byte[] byteArrayWith9s(int size) {
        byte[] bytez = new byte[size];
        Arrays.fill(bytez, (byte) 0x99);
        return bytez;
      }
    
      public void testToString() {
        byte[] data = new byte[] {127, -128, 5, -1, 14};
        assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString());
        assertEquals("7f8005ff0e", base16().lowerCase().encode(data));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
        assertEquals(getMultiset().entrySet().toString(), getMultiset().toString());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top