Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 188 for _Equal (0.12 sec)

  1. docs/en/docs/tutorial/path-params-numeric-validations.md

        {!> ../../../docs_src/path_params_numeric_validations/tutorial003_an.py!}
        ```
    
    ## Number validations: greater than or equal
    
    With `Query` and `Path` (and others you'll see later) you can declare number constraints.
    
    Here, with `ge=1`, `item_id` will need to be an integer number "`g`reater than or `e`qual" to `1`.
    
    === "Python 3.9+"
    
        ```Python hl_lines="10"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 01 21:05:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Function.java

       *
       * <ul>
       *   <li>Its execution does not cause any observable side effects.
       *   <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
       *       Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
       *     arguments
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/crypto/elliptic/params.go

    	s2 := new(big.Int).Mul(y2, z1)
    	s2.Mul(s2, z1z1)
    	s2.Mod(s2, curve.P)
    	r := new(big.Int).Sub(s2, s1)
    	if r.Sign() == -1 {
    		r.Add(r, curve.P)
    	}
    	yEqual := r.Sign() == 0
    	if xEqual && yEqual {
    		return curve.doubleJacobian(x1, y1, z1)
    	}
    	r.Lsh(r, 1)
    	v := new(big.Int).Mul(u1, i)
    
    	x3.Set(r)
    	x3.Mul(x3, x3)
    	x3.Sub(x3, j)
    	x3.Sub(x3, v)
    	x3.Sub(x3, v)
    	x3.Mod(x3, curve.P)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. pkg/util/smallset/smallset_test.go

    	assert.Equal(t, set.List(), []string{"a", "b", "d"})
    	assert.Equal(t, nset.List(), []string{"a", "b", "c", "d", "z"})
    
    	assert.Equal(t, nset.Contains("a"), true)
    	assert.Equal(t, nset.Contains("b"), true)
    	assert.Equal(t, nset.Contains("c"), true)
    	assert.Equal(t, nset.Contains("d"), true)
    	assert.Equal(t, nset.Contains("e"), false)
    	assert.Equal(t, nset.Contains("z"), true)
    }
    
    func TestNew(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/retry/retry_test.go

    				g.Expect(policy.RetryOn).To(Equal("some,fake,conditions"))
    				g.Expect(policy.PerTryTimeout).To(Equal(durationpb.New(time.Second * 3)))
    				g.Expect(policy.NumRetries.Value).To(Equal(uint32(2)))
    				g.Expect(policy.RetriableStatusCodes).To(Equal(make([]uint32, 0)))
    				g.Expect(policy.RetryPriority).To(BeNil())
    				g.Expect(policy.HostSelectionRetryMaxAttempts).To(Equal(retry.DefaultPolicy().HostSelectionRetryMaxAttempts))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. pkg/kube/kclient/crdwatcher_test.go

    	ctl := c.CrdWatcher()
    	// Created before informer runs
    	assert.Equal(t, ctl.KnownOrCallback(gvr.VirtualService, func(s <-chan struct{}) {
    		assert.Equal(t, s, stop)
    		vsCalls.Inc()
    	}), false)
    
    	c.RunAndWait(stop)
    	assert.EventuallyEqual(t, vsCalls.Load, 1)
    
    	// created once running
    	assert.Equal(t, ctl.KnownOrCallback(gvr.GatewayClass, func(s <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. pkg/kube/krt/index_test.go

    	}
    	pc.CreateOrUpdateStatus(pod)
    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/listenertest/match.go

    	}
    	if want.Name != "" {
    		assert.Equal(t, want.Name, have.Name, context("name should be equal"))
    	}
    	if want.Type != "" {
    		assert.Equal(t, want.Type, haveType, context(fmt.Sprintf("type should be equal (%+v)", have.FilterChainMatch)))
    	}
    	if want.Port != 0 {
    		assert.Equal(t, want.Port, have.GetFilterChainMatch().GetDestinationPort().GetValue(), context("port should be equal"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. pkg/kube/krt/singleton_test.go

    	s.Register(TrackerHandler[string](tt))
    
    	assert.Equal(t, s.Get(), nil)
    
    	s.Set(ptr.Of("foo"))
    	assert.Equal(t, s.Get(), ptr.Of("foo"))
    	tt.WaitOrdered("add/foo")
    
    	s.Set(nil)
    	assert.Equal(t, s.Get(), nil)
    	tt.WaitOrdered("delete/foo")
    
    	s.Set(ptr.Of("bar"))
    	assert.Equal(t, s.Get(), ptr.Of("bar"))
    	tt.WaitOrdered("add/bar")
    
    	s.Set(ptr.Of("bar2"))
    	assert.Equal(t, s.Get(), ptr.Of("bar2"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. pkg/kube/krt/informer_test.go

    			Namespace: "ns",
    		},
    	}
    	cmt.Create(cmA)
    	tt.WaitOrdered("add/ns/a")
    	assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA})
    
    	cmt.Update(cmA2)
    	tt.WaitOrdered("update/ns/a")
    	assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA2})
    
    	cmt.Create(cmB)
    	tt.WaitOrdered("add/ns/b")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top