Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBitsSetFrom (0.1 sec)

  1. src/net/netip/uint128_test.go

    		case sub1:
    			got = tt.in.subOne()
    		default:
    			panic("bogus op")
    		}
    		if got != tt.want {
    			t.Errorf("%v add %d = %v; want %v", tt.in, tt.op, got, tt.want)
    		}
    	}
    }
    
    func TestBitsSetFrom(t *testing.T) {
    	tests := []struct {
    		bit  uint8
    		want uint128
    	}{
    		{0, uint128{^uint64(0), ^uint64(0)}},
    		{1, uint128{^uint64(0) >> 1, ^uint64(0)}},
    		{63, uint128{1, ^uint64(0)}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 01:28:01 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top