Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMTF (0.06 sec)

  1. src/compress/bzip2/bzip2_test.go

    			}
    		}
    		if !v.fail && val != v.value {
    			t.Errorf("test %d, mismatching value: ReadBits(%d) = %d, want %d", i, v.nbits, val, v.value)
    		}
    	}
    }
    
    func TestMTF(t *testing.T) {
    	var vectors = []struct {
    		idx int   // Input index
    		sym uint8 // Expected output symbol
    	}{
    		{idx: 1, sym: 1}, // [1 0 2 3 4]
    		{idx: 0, sym: 1}, // [1 0 2 3 4]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 6.3K bytes
    - Viewed (0)
Back to top