aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/tests/blockdef_test.cpp6
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);
}