Blame view

build6/epsilon-master/ion/test/crc32.cpp 223 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
  #include <quiz.h>
  #include <ion.h>
  #include <assert.h>
  
  QUIZ_CASE(ion_crc32) {
    uint32_t input[] = { 0x48656C6C, 0x6F2C2077 };
    assert(Ion::crc32(input, 1) == 0x93591FFD);
    assert(Ion::crc32(input, 2) == 0x72EAD3FB);
  }