Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSliceType (0.59 sec)

  1. src/encoding/gob/type_test.go

    	}
    	str := a3bool.string()
    	expected := "[3]bool"
    	if str != expected {
    		t.Errorf("array printed as %q; expected %q", str, expected)
    	}
    }
    
    func TestSliceType(t *testing.T) {
    	var s []int
    	sint := getTypeUnlocked("slice", reflect.TypeOf(s))
    	var news []int
    	newsint := getTypeUnlocked("slice1", reflect.TypeOf(news))
    	if sint != newsint {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top