Source code for kyu_8.greek_sort.evaluator
"""
Evaluator function for -> Greek Sort.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
[docs]
def evaluator(result: int, expected: str) -> bool:
"""
Compare two arguments.
:param result: int
:param expected: str
:return: bool
"""
val: bool = False
if expected == '< 0':
val = result < 0
if expected == '== 0':
val = result == 0
if expected == '> 0':
val = result > 0
return val