From d3b4529a6e9cee8103c8634c0e3702489696ae50 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 29 Jul 2018 10:53:52 +0200 Subject: [PATCH] added another example on how to check the result --- tests/crc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/crc.cc b/tests/crc.cc index 0fe9007..7dfc38c 100644 --- a/tests/crc.cc +++ b/tests/crc.cc @@ -24,7 +24,7 @@ int main() std::bitset<32> hw("00000010001001110111110100100100"); for (size_t i = 0; i < hw.size(); ++i) crc(hw[i]); //std::cerr << "0x" << std::hex << crc() << std::endl; - assert(!crc(uint16_t(0x915D))); + assert(crc() == 0x915D); } if (1) { DSP::CRC crc(0x8C);