def test_match_vars(cases, expected):
    """Test matching cases with return values as Vars.

    Args:
        cases: The match cases.
        expected: The expected var full name.
    """
    match_comp = Match.create(MatchState.value, *cases)
    assert isinstance(match_comp, Var)
    assert str(match_comp) == expected
Test matching cases with return values as Vars.

    Args:
        cases: The match cases.
        expected: The expected var full name.
    
tests/units/components/core/test_match.py