Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTypeByExtensionCase (0.24 sec)

  1. src/mime/type_test.go

    	}
    
    	for ext, want := range tests {
    		val := TypeByExtension(ext)
    		if val != want {
    			t.Errorf("TypeByExtension(%q) = %q, want %q", ext, val, want)
    		}
    	}
    }
    
    func TestTypeByExtensionCase(t *testing.T) {
    	const custom = "test/test; charset=iso-8859-1"
    	const caps = "test/test; WAS=ALLCAPS"
    
    	cleanup := setMimeInit(func() {
    		clearMimeTypes()
    		setType(".TEST", caps)
    		setType(".tesT", custom)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 21:09:03 UTC 2022
    - 4.9K bytes
    - Viewed (0)
Back to top