NBT Test: fix begin of data test for int64, remove irrelevant (and architecture-specific) suffixes
parent
7c12a92b2a
commit
ed429633e5
|
@ -98,15 +98,15 @@ int main(){
|
|||
// int64 ###########################################################
|
||||
// read successfully
|
||||
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);
|
||||
// begin of data
|
||||
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);
|
||||
// end of data
|
||||
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);
|
||||
// partially out of bounds
|
||||
currentPosition = 3;
|
||||
|
|
Loading…
Reference in New Issue