@@ -13,25 +13,25 @@ using no_flows_config_t =
1313} // namespace
1414
1515TEST_CASE (" config models concept" , " [sub_irq_impl]" ) {
16- static_assert (interrupt::sub_irq_config<no_flows_config_t >);
16+ STATIC_REQUIRE (interrupt::sub_irq_config<no_flows_config_t >);
1717}
1818
1919TEST_CASE (" config default status policy is clear first" , " [sub_irq_impl]" ) {
20- static_assert (std::is_same_v<no_flows_config_t ::status_policy_t ,
21- interrupt::clear_status_first>);
20+ STATIC_REQUIRE (std::is_same_v<no_flows_config_t ::status_policy_t ,
21+ interrupt::clear_status_first>);
2222}
2323
2424TEST_CASE (" config status policy can be supplied" , " [sub_irq_impl]" ) {
2525 using config_t =
2626 interrupt::sub_irq<enable_field_t <0 >, status_field_t <0 >,
2727 interrupt::policies<interrupt::clear_status_last>>;
28- static_assert (std::is_same_v<config_t ::status_policy_t ,
29- interrupt::clear_status_last>);
28+ STATIC_REQUIRE (std::is_same_v<config_t ::status_policy_t ,
29+ interrupt::clear_status_last>);
3030}
3131
3232TEST_CASE (" impl models concept" , " [sub_irq_impl]" ) {
3333 using impl_t = interrupt::sub_irq_impl<no_flows_config_t , test_nexus>;
34- static_assert (interrupt::sub_irq_interface<impl_t >);
34+ STATIC_REQUIRE (interrupt::sub_irq_interface<impl_t >);
3535}
3636
3737namespace {
@@ -43,7 +43,7 @@ using flow_config_t = interrupt::sub_irq<enable_field_t<0>, status_field_t<0>,
4343TEST_CASE (" impl runs a flow when enabled and status" , " [sub_irq_impl]" ) {
4444 using impl_t =
4545 interrupt::sub_irq_impl<flow_config_t <std::true_type>, test_nexus>;
46- static_assert (impl_t ::active);
46+ STATIC_REQUIRE (impl_t ::active);
4747
4848 enable_field_t <0 >::value = true ;
4949 status_field_t <0 >::value = true ;
@@ -55,7 +55,7 @@ TEST_CASE("impl runs a flow when enabled and status", "[sub_irq_impl]") {
5555TEST_CASE (" impl doesn't run a flow when not enabled" , " [sub_irq_impl]" ) {
5656 using impl_t =
5757 interrupt::sub_irq_impl<flow_config_t <std::true_type>, test_nexus>;
58- static_assert (impl_t ::active);
58+ STATIC_REQUIRE (impl_t ::active);
5959
6060 enable_field_t <0 >::value = false ;
6161 status_field_t <0 >::value = true ;
@@ -67,7 +67,7 @@ TEST_CASE("impl doesn't run a flow when not enabled", "[sub_irq_impl]") {
6767TEST_CASE (" impl doesn't run a flow when not status" , " [sub_irq_impl]" ) {
6868 using impl_t =
6969 interrupt::sub_irq_impl<flow_config_t <std::true_type>, test_nexus>;
70- static_assert (impl_t ::active);
70+ STATIC_REQUIRE (impl_t ::active);
7171
7272 enable_field_t <0 >::value = true ;
7373 status_field_t <0 >::value = false ;
@@ -79,12 +79,12 @@ TEST_CASE("impl doesn't run a flow when not status", "[sub_irq_impl]") {
7979TEST_CASE (" impl is inactive when flow is not active" , " [sub_irq_impl]" ) {
8080 using impl_t =
8181 interrupt::sub_irq_impl<flow_config_t <std::false_type>, test_nexus>;
82- static_assert (not impl_t ::active);
82+ STATIC_REQUIRE (not impl_t ::active);
8383}
8484
8585TEST_CASE (" impl is inactive when there are no flows" , " [sub_irq_impl]" ) {
8686 using impl_t = interrupt::sub_irq_impl<no_flows_config_t , test_nexus>;
87- static_assert (not impl_t ::active);
87+ STATIC_REQUIRE (not impl_t ::active);
8888}
8989
9090TEST_CASE (" impl reports one enable field when active" , " [sub_irq_impl]" ) {
0 commit comments