Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for minusone (0.26 sec)

  1. src/crypto/elliptic/p256_test.go

    	ggx, ggy := p256.ScalarBaseMult(two)
    	if x.Cmp(ggx) != 0 || y.Cmp(ggy) != 0 {
    		t.Errorf("1×G + 1×G = (%d, %d), should be (%d, %d)", x, y, ggx, ggy)
    	}
    
    	minusOne := new(big.Int).Sub(p256.Params().N, big.NewInt(1))
    	// 1×G + (-1)×G = ∞
    	x, y = p256.CombinedMult(gx, gy, one, minusOne.Bytes())
    	if x.Sign() != 0 || y.Sign() != 0 {
    		t.Errorf("1×G + (-1)×G = (%d, %d), should be ∞", x, y)
    	}
    }
    
    func TestIssue52075(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 16:58:48 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    			},
    			want:   0,
    			wantOK: true,
    		},
    		{
    			name: "one",
    			fields: fields{
    				value: []byte("1"),
    			},
    			want:   1,
    			wantOK: true,
    		},
    		{
    			name: "minusone",
    			fields: fields{
    				value: []byte("-1"),
    			},
    			want:   -1,
    			wantOK: true,
    		},
    		{
    			name: "plusone",
    			fields: fields{
    				value: []byte("+1"),
    			},
    			want:   1,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  3. src/runtime/runtime-gdb_test.go

    			t.Fatalf("could not find %s in 'info typrs astruct' output", name)
    		}
    	}
    }
    
    const constsSource = `
    package main
    
    const aConstant int = 42
    const largeConstant uint64 = ^uint64(0)
    const minusOne int64 = -1
    
    func main() {
    	println("hello world")
    }
    `
    
    func TestGdbConst(t *testing.T) {
    	checkGdbEnvironment(t)
    	t.Parallel()
    	checkGdbVersion(t)
    
    	dir := t.TempDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/scalar_test.go

    	}
    	return reflect.ValueOf(notZeroScalar(s))
    }
    
    func TestScalarEqual(t *testing.T) {
    	if scOne.Equal(scMinusOne) == 1 {
    		t.Errorf("scOne.Equal(&scMinusOne) is true")
    	}
    	if scMinusOne.Equal(scMinusOne) == 0 {
    		t.Errorf("scMinusOne.Equal(&scMinusOne) is false")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. tests/integration/pilot/cni/cniversionskew_test.go

    	apps = deployment.SingleNamespaceView{}
    )
    
    const (
    	// TODO: replace this with official 1.11 release once available.
    	NMinusOne    = "1.11.0-beta.1"
    	CNIConfigDir = "tests/integration/pilot/testdata/upgrade"
    )
    
    // Currently only test CNI with one version behind.
    var versions = []string{NMinusOne}
    
    // TestCNIVersionSkew runs all traffic tests with older versions of CNI and lastest Istio.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. tests/integration/pilot/multi_version_revision_test.go

    	"istio.io/istio/pkg/test/util/file"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const (
    	NMinusOne   = "1.10.0"
    	NMinusTwo   = "1.9.5"
    	NMinusThree = "1.8.6"
    	NMinusFour  = "1.7.6"
    	NMinusFive  = "1.6.11"
    )
    
    var versions = []string{NMinusOne, NMinusTwo, NMinusThree, NMinusFour, NMinusFive}
    
    type revisionedNamespace struct {
    	revision  string
    	namespace namespace.Instance
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tests/integration/pilot/revisioned_upgrade_test.go

    			if !t.Clusters().Default().MaxKubeVersion(21) {
    				t.Skipf("k8s version not supported for %s (>%s)", t.Name(), "1.21")
    			}
    			versions := []string{NMinusOne, NMinusTwo, NMinusThree, NMinusFour}
    			for _, v := range versions {
    				t.NewSubTest(fmt.Sprintf("%s->master", v)).Run(func(t framework.TestContext) {
    					testUpgradeFromVersion(t, v)
    				})
    			}
    		})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/crypto/elliptic/elliptic_test.go

    	}
    	// There is no other point of order two on the NIST curves (as they have
    	// cofactor one), so Double can't otherwise return the point at infinity.
    
    	nMinusOne := new(big.Int).Sub(curve.Params().N, big.NewInt(1))
    	x, y := curve.ScalarMult(xG, yG, nMinusOne.Bytes())
    	x, y = curve.Add(x, y, xG, yG)
    	if !isInfinity(x, y) {
    		t.Errorf("x^(q-1) + x != ∞")
    	}
    	x, y = curve.Add(xG, yG, x0, y0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tpu_cluster_formation.mlir

      // CHECK-NEXT: %{{.*}} = "tf_device.cluster"() ({
      %minus_one = "tf.Const"() {_replication_info = "cluster",
                              _xla_compile_device_type = "TPU",
                              value = dense<-1> : tensor<1xi32>} : () -> tensor<1xi32>
      "tf.TPUReplicateMetadata"() {_replication_info = "cluster", num_replicas = 1 : i64} : () -> ()
    
      %1 = "tf.Reshape"(%arg0, %minus_one) : (tensor<*xi32>, tensor<1xi32>) -> tensor<?xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  10. test-site/activator-launch-1.3.2.jar

    scala.math; public final synchronized class BigInt$ implements scala.Serializable { public static final BigInt$ MODULE$; private final BigInt[] cache; private final java.math.BigInteger scala$math$BigInt$$minusOne; public static void <clinit>(); public final java.math.BigInteger scala$math$BigInt$$minusOne(); private BigInt apply(int); private BigInt apply(long); public final BigInt int2bigInt(int); public final BigInt long2bigInt(long); private void BigInt$(); } scala/math/BigDecimal.class package scala.math;...
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (1)
Back to top