1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00
This commit is contained in:
Carles Fernandez 2021-03-25 19:12:05 +01:00
parent aeb6a0cd84
commit 4c51037b14
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -382,10 +382,10 @@ TEST(ReedSolomonTest, Decode1Error)
// Introduce 1 error:
encoded_input[23] = 0;
int result = rs->decode(encoded_input);
auto rs = std::make_unique<ReedSolomon>();
int result = rs->decode(encoded_input);
EXPECT_TRUE(result == 1);
std::vector<uint8_t> decoded(encoded_input.begin(), encoded_input.begin() + 32);
EXPECT_TRUE(expected_output == decoded);