diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-06-21 11:24:09 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-22 18:42:11 -0700 |
commit | bd3ad461484092500072ae043fae2b36dcfaec83 (patch) | |
tree | cb2669f0afd0ba774a295a6cb8f262bd74ae9d05 /host/tests/blockdef_test.cpp | |
parent | c09366504266687d9254392e828c51cdb239b905 (diff) | |
download | uhd-bd3ad461484092500072ae043fae2b36dcfaec83.tar.gz uhd-bd3ad461484092500072ae043fae2b36dcfaec83.tar.bz2 uhd-bd3ad461484092500072ae043fae2b36dcfaec83.zip |
UHD: Updated blockdef dest asserts
Diffstat (limited to 'host/tests/blockdef_test.cpp')
-rw-r--r-- | host/tests/blockdef_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/tests/blockdef_test.cpp b/host/tests/blockdef_test.cpp index 7779150be..bc513bebd 100644 --- a/host/tests/blockdef_test.cpp +++ b/host/tests/blockdef_test.cpp @@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE(test_args) { // Create an FFT: blockdef::sptr block_definition = blockdef::make_from_noc_id(0xFF70000000000000); blockdef::args_t args = block_definition->get_args(); - BOOST_REQUIRE(args.size() >= 3); + BOOST_REQUIRE_EQUAL(args.size(), 7); BOOST_CHECK_EQUAL(args[0]["name"], "spp"); BOOST_CHECK_EQUAL(args[0]["type"], "int"); BOOST_CHECK_EQUAL(args[0]["value"], "256"); @@ -71,12 +71,12 @@ BOOST_AUTO_TEST_CASE(test_regs) { // Create an FFT: blockdef::sptr block_definition = blockdef::make_from_noc_id(0xFF70000000000000); blockdef::registers_t sregs = block_definition->get_settings_registers(); - BOOST_REQUIRE_EQUAL(sregs.size(), 3); + BOOST_REQUIRE_EQUAL(sregs.size(), 6); BOOST_CHECK_EQUAL(sregs["FFT_RESET"], 131); BOOST_CHECK_EQUAL(sregs["FFT_SIZE_LOG2"], 132); BOOST_CHECK_EQUAL(sregs["MAGNITUDE_OUT"], 133); blockdef::registers_t user_regs = block_definition->get_readback_registers(); - BOOST_REQUIRE_EQUAL(user_regs.size(), 2); + BOOST_REQUIRE_EQUAL(user_regs.size(), 6); BOOST_CHECK_EQUAL(user_regs["RB_FFT_RESET"], 0); BOOST_CHECK_EQUAL(user_regs["RB_MAGNITUDE_OUT"], 1); } |