From 96b23378e01bc0ab50feb2b57ab6ebc8d5bf9cd5 Mon Sep 17 00:00:00 2001 From: prsabahrami Date: Thu, 16 May 2024 12:40:19 -0400 Subject: [PATCH] Adding coverage for L329 - L333 --- tests/functions_310.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/functions_310.py b/tests/functions_310.py index c039468..52f9f6b 100644 --- a/tests/functions_310.py +++ b/tests/functions_310.py @@ -174,6 +174,20 @@ def match_mapping(x): return 2 +def multiple_match(x): + match x: + case 0: + return 1 + case 1: + return 2 + match x: + case 0: + return 3 + case 1: + return 4 + return 5 + + functions_310 = [ nested_match, match_assignments_inside_branch, @@ -187,6 +201,7 @@ def match_mapping(x): match_with_guard_variable, match_with_guard_multiple_variable, match_sequence_incomplete, + multiple_match, ] xfail_functions_310 = [