Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/hash/crc32/crc32_test.go

    	for _, g := range golden {
    		if crc := crcFunc([]byte(g.in)); crc != g.ieee {
    			t.Errorf("IEEE(%s) = 0x%x want 0x%x", g.in, crc, g.ieee)
    		}
    	}
    }
    
    // testGoldenCastagnoli verifies that the given function returns
    // correct IEEE checksums.
    func testGoldenCastagnoli(t *testing.T, crcFunc func(b []byte) uint32) {
    	for _, g := range golden {
    		if crc := crcFunc([]byte(g.in)); crc != g.castagnoli {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top