Fix nativizeLittleEndian test to work on little endian systems

This commit is contained in:
2017-04-09 17:15:23 -05:00
parent 4fdf5f48eb
commit e0cf5c1a2b
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -40,4 +40,4 @@ add_executable(
target_link_libraries(ByteSwapTest OxStd)
add_test("Test\\ nativizeLittleEndian\\ 40\\ ==\\ 671088640" ByteSwapTest "40")
add_test("Test\\ nativizeLittleEndian\\ 40" ByteSwapTest "40")
+1 -2
View File
@@ -17,8 +17,7 @@ map<string, function<int()>> tests = {
{
"40",
[]() {
cout << (nativizeLittleEndian((uint32_t) 40)) << endl;
return !(nativizeLittleEndian((uint32_t) 40) == 671088640);
return !(nativizeLittleEndian(nativizeLittleEndian((uint32_t) 40)) == 40);
}
},
};