Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 385 for S1 (0.11 sec)

  1. test/fixedbugs/issue6295.dir/p2.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./p0"
    	"./p1"
    )
    
    var (
    	_ p0.T0 = p0.S0{}
    	_ p0.T0 = p1.S1{}
    	_ p0.T0 = p1.NewT0()
    	_ p0.T0 = p1.NewT1() // same as p1.S1{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 327 bytes
    - Viewed (0)
  2. test/method.go

    	}
    	if ps.val() != 2 {
    		println("ps.val:", ps.val())
    		panic("fail")
    	}
    	if (*S1).val(ps) != 2 {
    		println("(*S1).val(ps):", (*S1).val(ps))
    		panic("fail")
    	}
    	if i.val() != 3 {
    		println("i.val:", i.val())
    		panic("fail")
    	}
    	if I.val(i) != 3 {
    		println("I.val(i):", I.val(i))
    		panic("fail")
    	}
    	if (*I).val(&i) != 3 {
    		println("(*I).val(&i):", (*I).val(&i))
    		panic("fail")
    	}
    	if pi.val() != 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 11 23:20:52 UTC 2013
    - 5.2K bytes
    - Viewed (0)
  3. test/fixedbugs/issue45913.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    func f(s1, s2 string) { fmt.Printf("%s %s", s1, s2) }
    
    func main() {
    	f([2]string{"a", "b"}...) // ERROR "invalid use of .*[.][.][.]|cannot use [.][.][.] in call to non-variadic"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 03 15:03:57 UTC 2021
    - 389 bytes
    - Viewed (0)
  4. test/typeparam/issue53087.go

    func CloneBad[M ~map[K]V, K comparable, V any](m M) M {
    	r := make(M, len(m))
    	for k, v := range m {
    		r[k] = v
    	}
    	return r
    }
    
    func main() {
    	s1 := &S{"one"}
    	s2 := &S{"two"}
    
    	m := CloningMap[string, I]{inner: make(map[string]I)}
    	m = m.With("a", s1)
    	m = m.With("b", s2)
    
    	it, found := m.inner["a"]
    	if !found {
    		panic("a not found")
    	}
    	if _, ok := it.(*S); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 16:23:09 UTC 2023
    - 930 bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/MoreObjectsTest.java

    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:24:55 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. src/runtime/runtime_test.go

    	v := *(*byte)(unsafe.Pointer(addr))
    	t.Logf("addr %#x: %#x\n", addr, v)
    }
    
    func eqstring_generic(s1, s2 string) bool {
    	if len(s1) != len(s2) {
    		return false
    	}
    	// optimization in assembly versions:
    	// if s1.str == s2.str { return true }
    	for i := 0; i < len(s1); i++ {
    		if s1[i] != s2[i] {
    			return false
    		}
    	}
    	return true
    }
    
    func TestEqString(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/crypto/elliptic/params.go

    		h.Add(h, curve.P)
    	}
    	i := new(big.Int).Lsh(h, 1)
    	i.Mul(i, i)
    	j := new(big.Int).Mul(h, i)
    
    	s1 := new(big.Int).Mul(y1, z2)
    	s1.Mul(s1, z2z2)
    	s1.Mod(s1, curve.P)
    	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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/math/rand/rand_test.go

    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareUint32Slices(s1, s2 []uint32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // compareFloat32Slices returns the first index where the two slices
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. statement_test.go

    				s.AddClause(clause.Where{
    					Exprs: s.BuildCondition(fmt.Sprintf("where%d", w)),
    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL1"),
    			})
    			s2 := s.clone()
    			s2.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL2"),
    			})
    
    			if reflect.DeepEqual(s1.Clauses["WHERE"], s2.Clauses["WHERE"]) {
    				t.Errorf("Where conditions should be different")
    			}
    		})
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/abiutils_test.go

    }
    
    func TestABIUtilsMethod(t *testing.T) {
    	// type s1 struct { f1 int16; f2 int16; f3 int16 }
    	// func(p1 *s1, p2 [7]*s1, p3 float64, p4 int16, p5 int16, p6 int16)
    	//   (r1 [7]*s1, r2 float64, r3 int64)
    	i16 := types.Types[types.TINT16]
    	i64 := types.Types[types.TINT64]
    	f64 := types.Types[types.TFLOAT64]
    	s1 := mkstruct(i16, i16, i16)
    	ps1 := types.NewPtr(s1)
    	a7 := types.NewArray(ps1, 7)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top