1
0
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:
Cillian O'Driscoll
2015-12-29 10:48:08 +00:00
parent b099ea003f
commit 4a3c37962e

View File

@@ -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 };