mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-13 00:06:02 +00:00
Fix unpack_2bit_samples_test: endianness confusion
Was confusing the definition of big endian items in the test bench.
This commit is contained in:
@@ -173,11 +173,11 @@ TEST(Unpack_2bit_Samples_Test, CheckLittleEndianByte)
|
||||
|
||||
}
|
||||
|
||||
TEST(Unpack_2bit_Samples_Test, CheckBigEndianShortBigEndianByte)
|
||||
TEST(Unpack_2bit_Samples_Test, CheckLittleEndianShortBigEndianByte)
|
||||
{
|
||||
bool big_endian_bytes = true;
|
||||
size_t item_size = 2;
|
||||
bool big_endian_items = true;
|
||||
bool big_endian_items = false;
|
||||
|
||||
|
||||
std::vector< int8_t > raw_data = { -1, 3, 1, -1, -3, 1, 3, 1 };
|
||||
@@ -241,11 +241,11 @@ TEST(Unpack_2bit_Samples_Test, CheckBigEndianShortBigEndianByte)
|
||||
|
||||
}
|
||||
|
||||
TEST(Unpack_2bit_Samples_Test, CheckBigEndianShortLittleEndianByte)
|
||||
TEST(Unpack_2bit_Samples_Test, CheckLittleEndianShortLittleEndianByte)
|
||||
{
|
||||
bool big_endian_bytes = false;
|
||||
size_t item_size = 2;
|
||||
bool big_endian_items = true;
|
||||
bool big_endian_items = false;
|
||||
|
||||
|
||||
std::vector< int8_t > raw_data = { -1, 3, 1, -1, -3, 1, 3, 1 };
|
||||
|
Reference in New Issue
Block a user