aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/block_id_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests/block_id_test.cpp')
-rw-r--r--host/tests/block_id_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/tests/block_id_test.cpp b/host/tests/block_id_test.cpp
index 11c9d7123..cf819300a 100644
--- a/host/tests/block_id_test.cpp
+++ b/host/tests/block_id_test.cpp
@@ -29,6 +29,7 @@ BOOST_AUTO_TEST_CASE(test_block_id)
BOOST_CHECK(block_id_t::is_valid_block_id("0/Filter_Foo#1"));
BOOST_CHECK(not block_id_t::is_valid_block_id("x/FilterFoo#1"));
BOOST_CHECK(not block_id_t::is_valid_block_id("0/FilterFoo#x"));
+ BOOST_CHECK(not block_id_t::is_valid_block_id("0/#1"));
BOOST_REQUIRE_THROW(block_id_t invalid_block_id("0Filter/1"), uhd::value_error);