Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for TestOr (0.13 sec)

  1. src/cmp/cmp_test.go

    			t.Errorf("Less sort mismatch at %d in %v", i, input)
    		}
    		if cmp.Compare(input[i], input[i+1]) > 0 {
    			t.Errorf("Compare sort mismatch at %d in %v", i, input)
    		}
    	}
    }
    
    func TestOr(t *testing.T) {
    	cases := []struct {
    		in   []int
    		want int
    	}{
    		{nil, 0},
    		{[]int{0}, 0},
    		{[]int{1}, 1},
    		{[]int{0, 2}, 2},
    		{[]int{3, 0}, 3},
    		{[]int{4, 5}, 4},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_test.go

    		<-done
    	}
    
    	// Check that the array has been totally set.
    	for i, v := range a {
    		if v != 0xff {
    			t.Fatalf("a[%v] not fully set: want %#x, got %#x", i, uint8(0xff), v)
    		}
    	}
    }
    
    func TestOr(t *testing.T) {
    	// Basic sanity check.
    	x := uint32(0)
    	for i := uint32(0); i < 32; i++ {
    		atomic.Or(&x, 1<<i)
    		if r := (uint32(1) << (i + 1)) - 1; x != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. tests/query_test.go

    		t.Fatalf("Build NOT condition, but got %v", result.Statement.SQL.String())
    	}
    }
    
    func TestOr(t *testing.T) {
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    
    	var count int64
    	result := dryDB.Model(&User{}).Or("role = ?", "admin").Count(&count)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      public void testNulls_interface() {
        tester.testNulls(AnInterface.class);
      }
    
      public void testNulls_abstractClass() {
        tester.testNulls(AnAbstractClass.class);
      }
    
      public void testNulls_enum() throws Exception {
        tester.testNulls(OneConstantEnum.class);
        tester.testNulls(NoConstantEnum.class);
        tester.testNulls(TimeUnit.class);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

          super.verify(elements);
        }
      }
    
      public void testVerifyGetsCalled() {
        TesterThatCountsCalls tester = new TesterThatCountsCalls();
    
        tester.test();
    
        assertEquals(
            "Should have verified once per stimulus executed",
            tester.numCallsToVerify,
            tester.numCallsToNewTargetIterator * STEPS);
      }
    
      public void testVerifyCanThrowAssertionThatFailsTest() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. pkg/kube/kclient/client_test.go

    	obj1.Spec.MinReadySeconds = 2
    	tester.Update(obj1)
    	tracker.WaitOrdered("update/1")
    	assert.Equal(t, tester.Get(obj1.Name, obj1.Namespace), obj1)
    
    	// Create some more objects
    	tester.Create(obj3)
    	tester.Create(obj2)
    	tracker.WaitOrdered("add/2")
    	assert.Equal(t, tester.Get(obj2.Name, obj2.Namespace), obj2)
    	// We should not see obj3, it is filtered
    
    	deploys := tester.List(obj1.Namespace, klabels.Everything())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

          super.verify(elements);
        }
      }
    
      public void testVerifyGetsCalled() {
        TesterThatCountsCalls tester = new TesterThatCountsCalls();
    
        tester.test();
    
        assertEquals(
            "Should have verified once per stimulus executed",
            tester.numCallsToVerify,
            tester.numCallsToNewTargetIterator * STEPS);
      }
    
      public void testVerifyCanThrowAssertionThatFailsTest() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        private final transient ClassSanityTester tester;
    
        SerializableDummyProxy(ClassSanityTester tester) {
          this.tester = tester;
        }
    
        @Override
        <R> R dummyReturnValue(TypeToken<R> returnType) {
          return tester.getDummyValue(returnType);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/cmd/dist/test.go

    	flag.BoolVar(&t.json, "json", false, "report test results in JSON")
    
    	xflagparse(-1) // any number of args
    	if noRebuild {
    		t.rebuild = false
    	}
    
    	t.run()
    }
    
    // tester executes cmdtest.
    type tester struct {
    	race        bool
    	msan        bool
    	asan        bool
    	listMode    bool
    	rebuild     bool
    	failed      bool
    	keepGoing   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableMultimap.class);
        tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableMultimap.of("a", 1));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top