mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Fix test
This commit is contained in:
parent
aeb6a0cd84
commit
4c51037b14
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user