NBT Test: fix begin of data test for int64, remove irrelevant (and architecture-specific) suffixes

BodgeMaster-unfinished
BodgeMaster 2022-06-29 00:02:51 +02:00
parent 7c12a92b2a
commit ed429633e5
1 changed files with 3 additions and 3 deletions

View File

@ -98,15 +98,15 @@ int main(){
// int64 ########################################################### // int64 ###########################################################
// read successfully // read successfully
currentPosition = 1; currentPosition = 1;
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2242829044932683046L); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2242829044932683046);
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false);
// begin of data // begin of data
currentPosition = 0; currentPosition = 0;
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2170488872094606374L); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2170488872094606373);
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false);
// end of data // end of data
currentPosition = 2; currentPosition = 2;
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2315169217770759719L); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).value == 2315169217770759719);
ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false); ASSERT(NBT::helper::readInt64(data, dataSize, currentPosition).isError == false);
// partially out of bounds // partially out of bounds
currentPosition = 3; currentPosition = 3;