Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTypeOf (0.12 sec)

  1. src/reflect/all_test.go

    			test.b = test.a
    		}
    		if r := DeepEqual(test.a, test.b); r != test.eq {
    			t.Errorf("DeepEqual(%#v, %#v) = %v, want %v", test.a, test.b, r, test.eq)
    		}
    	}
    }
    
    func TestTypeOf(t *testing.T) {
    	// Special case for nil
    	if typ := TypeOf(nil); typ != nil {
    		t.Errorf("expected nil type for nil value; got %v", typ)
    	}
    	for _, test := range deepEqualTests {
    		v := ValueOf(test.a)
    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