# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
A__           =							abspath(join(dirname(dirname(__file__)), """src"""))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="""ignore""", category=FutureWarning)





def  _lowerCamelCase					(   a_				: Optional[Any]):
   from diffusers.utils.testing_utils import pytest_addoption_shared

   pytest_addoption_shared(lowercase_)





def  _lowerCamelCase					(   a_				: Any):
   from diffusers.utils.testing_utils import pytest_terminal_summary_main

   lowerCamelCase						:List[str]						  =     terminalreporter.config.getoption('''--make-reports''')
   if make_reports:
      pytest_terminal_summary_main(lowercase_						,			id=lowercase_)




import operator as op





def  _lowerCamelCase					(   a_				: Tuple):
			lowerCamelCase						:int						  =     []
			lowerCamelCase						:List[str]						  =     lambda a_						,			a_: int(x / y)  # noqa: E731 integer division operation
			lowerCamelCase						:Optional[int]						  =     {
			    '''^''': op.pow,
			    '''*''': op.mul,
			    '''/''': div,
			    '''+''': op.add,
			    '''-''': op.sub,
			}  # operators & their respective operation

			# print table header
			print('''Symbol'''.center(8)						,			'''Action'''.center(12)						,			'''Stack'''						,			sep=''' | ''')
			print('''-''' * (30 + len(a_)))

			for x in post_fix:
						if x.isdigit():  # if x in digit
									stack.append(a_)  # append x to stack
									# output in tabular format
									print(x.rjust(8)						,			('''push(''' + x + ''')''').ljust(12)						,			''','''.join(a_)						,			sep=''' | ''')
						else:
									lowerCamelCase						:Optional[Any]						  =     stack.pop()  # pop stack
									# output in tabular format
									print(''''''.rjust(8)						,			('''pop(''' + b + ''')''').ljust(12)						,			''','''.join(a_)						,			sep=''' | ''')

									lowerCamelCase						:str						  =     stack.pop()  # pop stack
									# output in tabular format
									print(''''''.rjust(8)						,			('''pop(''' + a + ''')''').ljust(12)						,			''','''.join(a_)						,			sep=''' | ''')

									stack.append(
									    str(opr[x](int(a_)						,			int(a_))))  # evaluate the 2 values popped from stack & push result to stack
									# output in tabular format
									print(
									    x.rjust(8)						,			('''push(''' + a + x + b + ''')''').ljust(12)						,			''','''.join(a_)						,			sep=''' | '''						,			)

			return int(stack[0])


if __name__ == "__main__":
			A__           =							input("""\n\nEnter a Postfix Equation (space separated) = """).split(""" """)
			print("""\n\tResult = """, solve(Postfix))



