Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_bool (0.16 sec)

  1. 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