Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for testExp2 (0.22 sec)

  1. src/math/all_test.go

    		if f := Expm1(vfexpm1SC[i]); !alike(expm1SC[i], f) {
    			t.Errorf("Expm1(%g) = %g, want %g", vfexpm1SC[i], f, expm1SC[i])
    		}
    	}
    }
    
    func TestExp2(t *testing.T) {
    	testExp2(t, Exp2, "Exp2")
    	testExp2(t, Exp2Go, "Exp2Go")
    }
    
    func testExp2(t *testing.T, Exp2 func(float64) float64, name string) {
    	for i := 0; i < len(vf); i++ {
    		if f := Exp2(vf[i]); !close(exp2[i], f) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_pgo_auto_multi.txt

    -- dep/dep.go --
    package dep
    import _ "test/dep3"
    -- dep2/dep2.go --
    package dep2
    -- dep3/dep3.go --
    package dep3
    -- testdep/testdep.go --
    package testdep
    import _ "test/testdep2"
    -- testdep2/testdep2.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:38:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. test/index.go

    		if thisPass == pass {
    			// Index operation
    			testExpr(b, pae+"["+cni+"]")
    
    			// Slice operation.
    			// Low index 0 is a special case in ggen.c
    			// so test both 0 and 1.
    			testExpr(b, pae+"[0:"+cni+"]")
    			testExpr(b, pae+"[1:"+cni+"]")
    			testExpr(b, pae+"["+cni+":]")
    			testExpr(b, pae+"["+cni+":"+cni+"]")
    		}
    	})
    
    	fmt.Fprintln(b, "}")
    	b.Flush()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 6.4K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/expr_test.go

    	{"3<<2+4", 3<<2 + 4, true},
    	{"3<<2+4", 3<<2 + 4, true},
    	{"3<<(2+4)", 3 << (2 + 4), true},
    	// Junk at EOF.
    	{"3 x", 3, false},
    	// Big number
    	{"4611686018427387904", 4611686018427387904, true},
    }
    
    func TestExpr(t *testing.T) {
    	p := NewParser(nil, nil, nil) // Expression evaluation uses none of these fields of the parser.
    	for i, test := range exprTests {
    		p.start(lex.Tokenize(test.input))
    		result := int64(p.expr())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/capabilities/CapabilitiesConflictResolutionIssuesIntegrationTest.groovy

            resolve.prepare()
    
            when:
            run ":p1:checkDeps"
    
            then:
            resolve.expectGraph {
                root(":p1", "test:p1:") {
                    project(":p2", "test:p2:") {
                        configuration 'runtimeElements'
                        project(":shared", "test:shared:") {
                            artifact(classifier: 'one-preferred')
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. test/range.go

    		s += i
    	}
    	if nmake != 1 {
    		println("range called makemap", nmake, "times")
    		panic("fail")
    	}
    	if s != 10 {
    		println("wrong sum ranging over makemap", s)
    		panic("fail")
    	}
    }
    
    func testmap2() {
    	n := 0
    	nmake = 0
    	for range makemap() {
    		n++
    	}
    	if nmake != 1 {
    		println("range called makemap", nmake, "times")
    		panic("fail")
    	}
    	if n != 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 05:50:54 UTC 2017
    - 8.1K bytes
    - Viewed (0)
  7. clause/expression_test.go

    package clause_test
    
    import (
    	"database/sql"
    	"fmt"
    	"reflect"
    	"sync"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    func TestExpr(t *testing.T) {
    	results := []struct {
    		SQL    string
    		Result string
    		Vars   []interface{}
    	}{{
    		SQL:    "create table ? (? ?, ? ?)",
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Aug 10 05:34:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. src/crypto/internal/bigmod/nat_test.go

    	if x.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", x, expected)
    	}
    	x.Add(y, m)
    	expected = &Nat{[]uint{7}}
    	if x.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", x, expected)
    	}
    }
    
    func TestExp(t *testing.T) {
    	m := modulusFromBytes([]byte{13})
    	x := &Nat{[]uint{3}}
    	out := &Nat{[]uint{0}}
    	out.Exp(x, []byte{12}, m)
    	expected := &Nat{[]uint{1}}
    	if out.Equal(expected) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/cshared_test.go

    	if GOOS == "windows" {
    		t.Skipf("Skipping on %s", GOOS)
    	}
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	t.Parallel()
    
    	cmd := "testp2"
    	bin := cmdToRun(cmd)
    	libname := "libgo2.a"
    
    	run(t,
    		nil,
    		"go", "build",
    		"-buildmode=c-shared",
    		"-installsuffix", "testcshared",
    		"-o", libname, "./libgo2",
    	)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		filepath.Join(libgodir, "libgo.h"),
    		"go", "install", "-buildmode=c-archive", "./libgo")
    
    	// Test building libgo other than installing it.
    	// Header files are now present.
    	testInstall(t, "./testp2"+exeSuffix, "libgo.a", "libgo.h",
    		"go", "build", "-buildmode=c-archive", filepath.Join(".", "libgo", "libgo.go"))
    
    	testInstall(t, "./testp3"+exeSuffix, "libgo.a", "libgo.h",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top