mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-04 08:24:11 +00:00
Fix test
This commit is contained in:
parent
aeb6a0cd84
commit
4c51037b14
@ -382,10 +382,10 @@ TEST(ReedSolomonTest, Decode1Error)
|
|||||||
|
|
||||||
// Introduce 1 error:
|
// Introduce 1 error:
|
||||||
encoded_input[23] = 0;
|
encoded_input[23] = 0;
|
||||||
int result = rs->decode(encoded_input);
|
|
||||||
|
|
||||||
auto rs = std::make_unique<ReedSolomon>();
|
auto rs = std::make_unique<ReedSolomon>();
|
||||||
|
|
||||||
|
int result = rs->decode(encoded_input);
|
||||||
EXPECT_TRUE(result == 1);
|
EXPECT_TRUE(result == 1);
|
||||||
std::vector<uint8_t> decoded(encoded_input.begin(), encoded_input.begin() + 32);
|
std::vector<uint8_t> decoded(encoded_input.begin(), encoded_input.begin() + 32);
|
||||||
EXPECT_TRUE(expected_output == decoded);
|
EXPECT_TRUE(expected_output == decoded);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user