Possibility to check if one of orthogonal states is as expected#353
Possibility to check if one of orthogonal states is as expected#353pborzecki wants to merge 2 commits intoboost-ext:masterfrom
Conversation
462fbf7 to
d4f1baa
Compare
| }); | ||
| return result; | ||
| } | ||
| template <class T = aux::identity<sm_t>, class TState> |
There was a problem hiding this comment.
It seems like a nice utility 👍 I don't think is required to be part of the sml core, it can be just a free function in the examples or extensions instead as it's implemented using visit_current_states
| } | ||
| }); | ||
| return result; | ||
| } |
There was a problem hiding this comment.
Tests to verify the behaviour will prevent breaking the functionality in the future ✅
| return result; | ||
| } | ||
| template <class T = aux::identity<sm_t>, class TState> | ||
| bool is_one_of_current_states_as(const TState&) const { |
There was a problem hiding this comment.
sml.hpp should not be changed directly as it's a generated file using tools/pph.sh
|
@pborzecki @krzysztof-jusiak If the utility could not be a part of the distribution, could you help me how to convert it to the standalone function. Just tried different approaches, but without success. Unfortunately, I'm not fit in the metaprogramming. A little example would be very useful. |
|
Actually, this should be the behavior of |
The idea is to have possibility to test orthogonal states independently. I.E. for testing purposes.