Permalink
Browse files

Improve tests

  • Loading branch information...
petya2164 committed Oct 2, 2018
1 parent 08f8219 commit debbbd887f2a8270210834a3585cecd5c7c92fea
Showing with 8 additions and 1 deletion.
  1. +1 −1 buildbot.py
  2. +7 −0 test/src/test_coders.cpp
@@ -82,7 +82,7 @@ def install(properties):
def coverage_settings(options):
options['required_line_coverage'] = 72.0
options['required_line_coverage'] = 90.0
def main():
@@ -112,6 +112,7 @@ TEST(test_coders, basic_api)
krlnc_encoder_set_systematic_on(encoder);
EXPECT_TRUE(krlnc_encoder_is_systematic_on(encoder));
EXPECT_TRUE(krlnc_encoder_in_systematic_phase(encoder));
krlnc_encoder_set_systematic_off(encoder);
EXPECT_FALSE(krlnc_encoder_is_systematic_on(encoder));
@@ -216,13 +217,19 @@ TEST(test_coders, symbol_status_api)
EXPECT_EQ(1U, krlnc_decoder_symbols_uncoded(decoder));
krlnc_decoder_set_status_updater_on(decoder);
EXPECT_TRUE(krlnc_decoder_is_status_updater_enabled(decoder));
coefficients = {0, 1, 0, 0};
krlnc_decoder_read_symbol(decoder, symbol.data(), coefficients.data());
EXPECT_EQ(2U, krlnc_decoder_symbols_uncoded(decoder));
krlnc_decoder_set_status_updater_off(decoder);
EXPECT_FALSE(krlnc_decoder_is_status_updater_enabled(decoder));
krlnc_decoder_read_uncoded_symbol(decoder, symbol.data(), 2);
EXPECT_EQ(3U, krlnc_decoder_symbols_uncoded(decoder));
krlnc_delete_decoder(decoder);
krlnc_delete_decoder_factory(decoder_factory);

0 comments on commit debbbd8

Please sign in to comment.