Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 410 for 20 (0.12 sec)

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

      }
    
      public void testSkipEOF() throws IOException {
        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
        // Test reading a single byte while we're in the right state
        assertEquals(-1, counter.read());
        assertEquals(20, counter.getCount());
      }
    
      public void testReadArrayEOF() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/bytes/compare_test.go

    		if Compare(b1, b2) != -1 {
    			b.Fatal("b1 < b2 failed")
    		}
    	}
    }
    
    func benchmarkCompareBytesBigUnaligned(b *testing.B, offset int) {
    	b.StopTimer()
    	b1 := make([]byte, 0, 1<<20)
    	for len(b1) < 1<<20 {
    		b1 = append(b1, "Hello Gophers!"...)
    	}
    	b2 := append([]byte("12345678")[:offset], b1...)
    	b.StartTimer()
    	for j := 0; j < b.N; j++ {
    		if Compare(b1, b2[offset:]) != 0 {
    			b.Fatal("b1 != b2")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          28, 20, 22, 20, 20, 22, 22, 22, 23, 22, 23, 23, 23, 23, 23, 24, 23, 24, 24, 22, 23, 24,
          23, 23, 23, 23, 21, 22, 23, 22, 23, 23, 24, 22, 21, 20, 22, 22, 23, 23, 21, 23, 22, 22,
          24, 21, 22, 23, 23, 21, 21, 22, 21, 23, 22, 23, 23, 20, 22, 22, 22, 23, 22, 22, 23, 26,
          26, 20, 19, 22, 23, 22, 25, 26, 26, 26, 27, 27, 26, 24, 25, 19, 21, 26, 27, 27, 26, 27,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromSizes() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          ArrayListMultimap.create(15, -2);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

        }
    
        public void test_selectList() {
            final PagingList<KuromojiItem> itemList1 = kuromojiFile.selectList(0, 20);
            assertEquals(3, itemList1.size());
            assertEquals(3, itemList1.getAllRecordCount());
            assertEquals(1, itemList1.getCurrentPageNumber());
            assertEquals(20, itemList1.getPageSize());
    
            final PagingList<KuromojiItem> itemList2 = kuromojiFile.selectList(2, 2);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashMultimapTest.java

        HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15);
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(15, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          HashMultimap.create(-20, 15);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. tests/sql_builder_test.go

    	}
    
    	DB.Table(table).Where(map[string]interface{}{"name": user2.Name}).Update("age", 20)
    
    	row = DB.Table(table+" as u").Where("u.name = ?", user2.Name).Select("age").Row()
    	if err := row.Scan(&age); err != nil {
    		t.Fatalf("Failed to scan age, got %v", err)
    	}
    
    	if age != 20 {
    		t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age)
    	}
    }
    
    func TestRows(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. cmd/data-usage-cache_test.go

    	tests := []struct {
    		v    sizeHistogramV1
    		want sizeHistogram
    	}{
    		{
    			v:    sizeHistogramV1{0: 10, 1: 20, 2: 3},
    			want: sizeHistogram{0: 10, 5: 20, 6: 3},
    		},
    		{
    			v:    sizeHistogramV1{0: 10, 1: 20, 2: 3, 3: 4, 4: 5, 5: 6, 6: 7},
    			want: sizeHistogram{0: 10, 5: 20, 6: 3, 7: 4, 8: 5, 9: 6, 10: 7},
    		},
    	}
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("test-%d", i), func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:51:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top