comparison UnitTestsSources/UnitTestsMain.cpp @ 1940:5514d37176b4

PatternUint16
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Mar 2016 11:08:07 +0100
parents d80a4fe8ffcc
children cc9901a98099
comparison
equal deleted inserted replaced
1939:d80a4fe8ffcc 1940:5514d37176b4
837 } 837 }
838 838
839 839
840 TEST(Toolbox, EndiannessConversions64) 840 TEST(Toolbox, EndiannessConversions64)
841 { 841 {
842 const uint64_t v = 0xff01020304050607LLu; 842 const uint64_t v = 0xff01020304050607LLU;
843 const uint64_t r = 0x07060504030201ffLLu; 843 const uint64_t r = 0x07060504030201ffLLU;
844 ASSERT_EQ64(v, be64toh(htobe64(v))); 844 ASSERT_EQ64(v, be64toh(htobe64(v)));
845 ASSERT_EQ64(v, le64toh(htole64(v))); 845 ASSERT_EQ64(v, le64toh(htole64(v)));
846 ASSERT_NE64(v, be64toh(htole64(v))); 846 ASSERT_NE64(v, be64toh(htole64(v)));
847 ASSERT_NE64(v, le64toh(htobe64(v))); 847 ASSERT_NE64(v, le64toh(htobe64(v)));
848 848