Implement a function called compare_tshirt_sizes that takes two T-shirt size strings as input and compares their sizes based on predefined criteria. The function should return a string indicating the relative size of the two T-shirts.
Input/Output Requirements
Input: The function will receive two parameters:
a (str): A string representing the size of the first T-shirt. The last character of this string will indicate the size category, either 'S' for small or 'L' for large.
b (str): A string representing the size of the second T-shirt, formatted similarly to a.
Output: The function should return one of the following strings based on the comparison of the T-shirt sizes:
'>' if T-shirt a is larger than T-shirt b
'<' if T-shirt a is smaller than T-shirt b
'=' if both T-shirts are of equal size
Constraints
The T-shirt size strings only consist of alphanumeric characters and end with either 'S' or 'L'.
Implementation
Implement the function in a file located at /app/solution.py. The function signature should be preserved as follows:
python
def compare_tshirt_sizes(a: str, b: str) -> str:
Ensure that the function is thoroughly tested for different combinations of T-shirt sizes.