Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for test_bool (0.3 sec)

  1. src/syscall/js/js_test.go

    func TestWasmImport(t *testing.T) {
    	a := uint32(3)
    	b := uint32(5)
    	want := a + b
    	if got := testAdd(a, b); got != want {
    		t.Errorf("got %v, want %v", got, want)
    	}
    }
    
    func TestBool(t *testing.T) {
    	want := true
    	o := dummys.Get("someBool")
    	if got := o.Bool(); got != want {
    		t.Errorf("got %#v, want %#v", got, want)
    	}
    	dummys.Set("otherBool", want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionConflictResolutionIntegrationTest.groovy

            def resolve = new ResolveTestFixture(buildFile)
            resolve.prepare()
    
            when:
            run("tool:checkDeps")
    
            then:
            resolve.expectGraph {
                root(":tool", "test:tool:") {
                    project(":api", "test:api:") {
                        configuration = "runtimeElements"
                        edge("org:foo:1.3.3", "org:foo:1.4.4").byConflictResolution("between versions 1.4.4 and 1.3.3")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    			}
    			if test.attemptsExpected != attempts {
    				t.Errorf("Expected %d invocations, got %d", test.attemptsExpected, attempts)
    			}
    		})
    	}
    }
    
    func Test_poll(t *testing.T) {
    	fakeErr := errors.New("fake error")
    	tests := []struct {
    		name               string
    		context            func() (context.Context, context.CancelFunc)
    		immediate          bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    	"runtime"
    	"slices"
    	"strconv"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    const bucketCount = abi.MapBucketCount
    
    var sink any
    
    func TestBool(t *testing.T) {
    	v := ValueOf(true)
    	if v.Bool() != true {
    		t.Fatal("ValueOf(true).Bool() = false")
    	}
    }
    
    type integer int
    type T struct {
    	a int
    	b float64
    	c string
    	d *int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top