Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue6255 (0.15 sec)

  1. src/compress/flate/flate_test.go

    		5, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11}
    	var h huffmanDecoder
    	if h.init(bits) {
    		t.Fatalf("Given sequence of bits is bad, and should not succeed.")
    	}
    }
    
    // The following test should not panic.
    func TestIssue6255(t *testing.T) {
    	bits1 := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11}
    	bits2 := []int{11, 13}
    	var h huffmanDecoder
    	if !h.init(bits1) {
    		t.Fatalf("Given sequence of bits is good and should succeed.")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 11K bytes
    - Viewed (1)
Back to top