Skip to content

Commit bc4f96e

Browse files
Mansib RahmanMansib Rahman
authored andcommitted
Added flag() function to case_validator.py
1 parent 36b774f commit bc4f96e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

toolchain/mfc/case_validator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ def __init__(self, params: Dict[str, Any]):
246246
def get(self, key: str, default=None):
247247
"""Get parameter value with default"""
248248
return self.params.get(key, default)
249+
250+
def flag(self, name: str) -> bool:
251+
"""True if and only if the case sets `name` to "T"."""
252+
return self.get(name, "F") == "T"
249253

250254
def is_set(self, key: str) -> bool:
251255
"""Check if parameter is set (not None and present)"""

0 commit comments

Comments
 (0)