Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 134 for teststring (0.15 sec)

  1. internal/s3select/sql/value.go

    		}
    
    		// Fallback to string
    		sA := a.bytesToString()
    		sB := b.bytesToString()
    		a.setString(sA)
    		b.setString(sB)
    		return nil
    
    	case okA && !okB:
    		// Here a has `a` is untyped, but `b` has a fixed
    		// type.
    		switch b.value.(type) {
    		case string:
    			s := a.bytesToString()
    			a.setString(s)
    
    		case int64, float64:
    			if iA, ok := a.bytesToInt(); ok {
    				a.setInt(iA)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        new EqualsTester()
            .addEqualityGroup(testTable)
            .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1)))
            .testEquals();
      }
    
      public void testToString() {
        assertEquals("{a={1=blah}}", testTable.toString());
      }
    
      public void testContains() {
        assertTrue(testTable.contains('a', 1));
        assertFalse(testTable.contains('a', 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ProtocolTest.kt

        assertThat(get("h3-29")).isEqualTo(Protocol.HTTP_3)
      }
    
      @Test
      fun testGetUnknown() {
        assertThrows(IOException::class.java) { get("tcp") }
      }
    
      @Test
      fun testToString() {
        assertThat(Protocol.HTTP_1_0.toString()).isEqualTo("http/1.0")
        assertThat(Protocol.HTTP_1_1.toString()).isEqualTo("http/1.1")
        assertThat(Protocol.SPDY_3.toString()).isEqualTo("spdy/3.1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. android/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)
  5. misc/cgo/gmp/gmp.go

    	// TODO(rsc): more work on 32-bit platforms
    	C.mpz_set_si(&z.i[0], C.long(x))
    	return z
    }
    
    // SetString interprets s as a number in the given base
    // and sets z to that value.  The base must be in the range [2,36].
    // SetString returns an error if s cannot be parsed or the base is invalid.
    func (z *Int) SetString(s string, base int) error {
    	z.doinit()
    	if base < 2 || base > 36 {
    		return os.ErrInvalid
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(System.getProperty(property.key()), property.value());
        }
      }
    
      public void testToString() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(property.key() + "=" + property.value(), property.toString());
        }
      }
    
      public void testNoNullValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 10 08:40:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/TestCharSink.java

      private final TestByteSink byteSink;
    
      public TestCharSink(TestOption... options) {
        this.byteSink = new TestByteSink(options);
      }
    
      public String getString() {
        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSink.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      private static <E extends @Nullable Object> Entry<E> control(E element, int count) {
        return HashMultiset.create(nCopies(count, element)).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertEquals("foo", entry("foo", 1).toString());
        assertEquals("bar x 2", entry("bar", 2).toString());
      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. schema/field.go

    				if data != nil && *data != nil {
    					field.ReflectValueOf(ctx, value).SetString(**data)
    				}
    			case string:
    				field.ReflectValueOf(ctx, value).SetString(data)
    			case []byte:
    				field.ReflectValueOf(ctx, value).SetString(string(data))
    			case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
    				field.ReflectValueOf(ctx, value).SetString(utils.ToString(data))
    			case float64, float32:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(System.getProperty(property.key()), property.value());
        }
      }
    
      public void testToString() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(property.key() + "=" + property.value(), property.toString());
        }
      }
    
      public void testNoNullValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 10 08:40:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top