Commit 67ac7e7d authored by Kai Vogelgesang's avatar Kai Vogelgesang Committed by rna

Update tests to pass consistent parameters to PrrtCodingConfiguration_create

parent 20325523
Pipeline #2990 passed with stages
in 1 minute and 26 seconds
......@@ -30,7 +30,7 @@ TEST_F(PrrtBlockTest, VDMCode)
uint8_t length = 3;
PrrtCodingConfiguration* params = PrrtCodingConfiguration_create(k, n, 1, NULL);
PrrtCodingConfiguration* params = PrrtCodingConfiguration_create(k, n, 1, &r);
PrrtCoder *coder = PrrtCoder_create(params);
for(q = 0; q < 4; q++) {
......@@ -93,7 +93,8 @@ TEST_F(PrrtBlockTest, VDMCode)
TEST_F(PrrtBlockTest, EncodeDecode)
{
PrrtCodingConfiguration *cpar = PrrtCodingConfiguration_create(4, 7, 1, NULL);
uint8_t r = 3;
PrrtCodingConfiguration *cpar = PrrtCodingConfiguration_create(4, 7, 1, &r);
PrrtCoder *coder = PrrtCoder_create(cpar);
PrrtBlock *encBlock = PrrtBlock_create(PrrtCodingConfiguration_copy(cpar), PrrtCoder_copy(coder), 1);
......@@ -169,7 +170,7 @@ TEST_F(PrrtBlockTest, EncodeDecode)
TEST_F(PrrtBlockTest, NoCodingConfigured)
{
PrrtCodingConfiguration *cpar = PrrtCodingConfiguration_create(1, 1, 1, NULL);
PrrtCodingConfiguration *cpar = PrrtCodingConfiguration_create(1, 1, 0, NULL);
PrrtCoder* coder = PrrtCoder_create(cpar);
PrrtBlock *encBlock = PrrtBlock_create(PrrtCodingConfiguration_copy(cpar), PrrtCoder_copy(coder), 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment