Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TestLimit (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThat(Iterators.toString(iterator)).isEqualTo("[]");
      }
    
      @SuppressWarnings("JUnitIncompatibleType") // Fails with j2kt.
      public void testLimit() {
        List<String> list = new ArrayList<>();
        assertThrows(IllegalArgumentException.class, () -> Iterators.limit(list.iterator(), -1));
    
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  2. tests/query_test.go

    	if !regexp.MustCompile(userQuery + "ORDER BY FIELD\\(id,1,2,3\\)").MatchString(explainedSQL) {
    		t.Fatalf("Build Order condition, but got %v", explainedSQL)
    	}
    }
    
    func TestLimit(t *testing.T) {
    	users := []User{
    		{Name: "LimitUser1", Age: 1},
    		{Name: "LimitUser2", Age: 10},
    		{Name: "LimitUser3", Age: 20},
    		{Name: "LimitUser4", Age: 10},
    		{Name: "LimitUser5", Age: 20},
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jul 22 06:21:04 GMT 2025
    - 51K bytes
    - Click Count (0)
Back to Top