Fix nativizeLittleEndian test to work on little endian systems
This commit is contained in:
@@ -40,4 +40,4 @@ add_executable(
|
|||||||
|
|
||||||
target_link_libraries(ByteSwapTest OxStd)
|
target_link_libraries(ByteSwapTest OxStd)
|
||||||
|
|
||||||
add_test("Test\\ nativizeLittleEndian\\ 40\\ ==\\ 671088640" ByteSwapTest "40")
|
add_test("Test\\ nativizeLittleEndian\\ 40" ByteSwapTest "40")
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ map<string, function<int()>> tests = {
|
|||||||
{
|
{
|
||||||
"40",
|
"40",
|
||||||
[]() {
|
[]() {
|
||||||
cout << (nativizeLittleEndian((uint32_t) 40)) << endl;
|
return !(nativizeLittleEndian(nativizeLittleEndian((uint32_t) 40)) == 40);
|
||||||
return !(nativizeLittleEndian((uint32_t) 40) == 671088640);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user